#include <mgui/command.h>
Public Types | |
| enum | FLAGS { FLAG_None = 0, FLAG_Selected = MxMENU_SELECTED, FLAG_OneOfMany = MxMENU_ONE_OF_MANY, FLAG_Toggle = MxMENU_TOGGLE, FLAG_Disabled = MxMENU_DISABLED, FLAG_Label = MxMENU_LABEL, FLAG_Ignore = MxMENU_IGNORE, FLAG_Programmer = MxMENU_PROGRAMMER } |
Public Member Functions | |
| void | Append (MENU &submenu, const char *label) |
| void | Append (const MIUNICODE *label, COMMAND_TARGET &target, FLAGS flags=FLAG_None) |
| void | Append (const char *label, COMMAND_TARGET &target, FLAGS flags=FLAG_None) |
| void | AppendSeparator () |
| void | CreateMenu () |
| void | CreatePopupMenu () |
| MENUITEM * | GetMenuItems () |
| MENU () | |
| void | TrackPopupMenu (Widget parent, XButtonEvent *event) |
| ~MENU () | |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Append a submenu (pull-right) to a menu. The submenu must already have all its items added and must not be modified or go out of scope until we're done using it.
|
|
||||||||||||||||
|
Append an item to the menu. Note that the flags are ignored in the MFC version
|
|
||||||||||||||||
|
Append an item to the menu. Note that the flags are ignored in the MFC version
|
|
|
The following methods come from the CMenu base class in MFC version.
|
|
|
Used to specify that this is to be a menu bar. Menu bar can only have other menus as children Note: in the MFC version, you MUST call this before adding anything. In the X version, this really does nothing and is just here for completeness. |
|
|
Used to specify that this is to be a popup menu. This includes menus on a menu bar. Note: in the MFC version, you MUST call this before adding anything. In the X version, this really does nothing and is just here for completeness. |
|
|
Get the array of MENUITEMS for menu creation X version only.
|
|
||||||||||||
|
Pop up a popup menu (X Version). The function is named to match the MFC version that does the same thing, although the parameters are not the same. |
1.3.8-20040913