In file include/csws/csmenu.h:

enum

csMenu class messages

cscmdDeactivateMenu
Tell menu or menu item to deactivate
cscmdMenuCaptureMouse
Tell menu to capture the mouse, if its parent menu didn't so
cscmdMenuItemCheck
Set/remove 'checked' mark at the right of menu item
cscmdMenuItemFindId
Check if menu item's id or id of a menu item in submenu of this menu item has given id
cscmdMenuItemGetStyle
Query menu item's style
IN: NULL
OUT: (int)ItemStyle
cscmdMenuPlaceItems
Tell menu to place all its items on their places and that it should re-size itself (if it is not a menu bar)
cscmdMenuQueryDropFlag
Query if submenus are dropped out automatically
IN:  NULL
OUT: (bool)DropFlag
cscmdMenuSetDropFlag
Query if submenus are dropped out automatically
IN:  (bool)DropFlag
OUT: (csMenu *)menu if successful
cscmdMenuSetItem
Set menu's current item to command argument
cscmdMenuSetLastItem
If menu has no current item, select the item that was last active

Documentation

csMenu class messages
cscmdDeactivateMenu
Tell menu or menu item to deactivate.
IN: (int)DismissCode;

cscmdMenuPlaceItems
Tell menu to place all its items on their places and that it should re-size itself (if it is not a menu bar)

cscmdMenuCaptureMouse
Tell menu to capture the mouse, if its parent menu didn't so.
IN: (csComponent *)Source;
OUT: NULL if mouse has been captured

cscmdMenuSetItem
Set menu's current item to command argument.
IN: (csComponent *)Item;
OUT: NULL if successfull

cscmdMenuSetLastItem
If menu has no current item, select the item that was last active

cscmdMenuQueryDropFlag
Query if submenus are dropped out automatically
IN:  NULL
OUT: (bool)DropFlag

cscmdMenuSetDropFlag
Query if submenus are dropped out automatically
IN:  (bool)DropFlag
OUT: (csMenu *)menu if successful

cscmdMenuItemCheck
Set/remove 'checked' mark at the right of menu item.

This command should be sent to a menu item object to set/unset the check mark to the right of item. Usage example:

menu->GetChild (cscmdQuit)->SendCommand (cscmdMenuItemCheck, true);
IN: (bool)true (set) or false (unset)

cscmdMenuItemGetStyle
Query menu item's style
IN: NULL
OUT: (int)ItemStyle

cscmdMenuItemFindId
Check if menu item's id or id of a menu item in submenu of this menu item has given id.
IN: (int)id;
OUT: (csComponent *)menuitem or NULL

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de