Description |
DeleteItem |
SHORT id the id of the item to delete
Removes an item
InsertItem |
XMenuItem * item item to insert
XMenuItem * submenu a submenu where to insert the item. If nessacary
a submenu is created (default is NULL).
inserting/removing items
RemoveItem |
SHORT id the id of the item to remove
Removes an item
CheckItem |
SHORT id the id of the requested item BOOL check TRUE=check, FALSE=not checked
Set an item checked/not checked
EnableItem |
SHORT id the id of the requested item
BOOL enable TRUE=enable, FALSE=disable
Enables/disables
GetItemID |
SHORT pos position of the item
SHORT theID
Get the ID of an item from its position
CascadeItem |
SHORT itemId the menuItem to become cascade
If you call CascadeItem() a menuitem with a submenu becomes cascaded, that means a button is inserted which enables the submenu. If you have made a menuitem cascaded you must select a default-item from the submenu of that menuitem by calling CheckItem().
GetItem |
XMenuItem * item buffer to hold the information
SHORT theID the ID of the requested menu-item
BOOL success
Get an item of a XMenuBar or XPopupMenu
GetItemCount |
SHORT itemCount
Returns the count of items
GetItemText |
USHORT id the id of the requested item XString * buffer buffer to hold the data
Get the text of an item
SetItemText |
XString * text text to display
Set the text of an item