class PtMenu PtGroup { menu_flags; // flag (Pt_ARG_MENU_FLAGS) menu_spacing; // short (Pt_ARG_MENU_SPACING) menu_text_font; // string (Pt_ARG_MENU_TEXT_FONT) menu_title; // string (Pt_ARG_MENU_TITLE) menu_title_font; // string (Pt_ARG_MENU_TITLE_FONT) }
This widget forms the basis of a menu. Building menus in Gamma is significantly different than in PhAB, however the detailed documentation has not yet been prepared.
For more information, please refer to PtMenu in the Photon documentation. |
This instance variable controls menu behavior, and may be a combination of zero or more of the following flags:
Constant | Description |
---|---|
Pt_MENU_AUTO | Keeps all menu items the same width. |
Pt_MENU_TRANSIENT | Destroys the menu when it is closed, possibly even before generating callbacks. |
Pt_MENU_TEAR_OFF | Tear Off |
Pt_MENU_CHILD | Lets this menu to override its parent. |
A number specifying how many pixels to separate each menu item. The default is the same value as border_width.
A string specifying the font for the menu text.
A string comprising the menu title.
A string specifying the font for the menu title. Default is "helv12b".
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.