Internal helper widget for making menu items.
Internal helper widget for making menu items.MenuItem implements a single item of a complex menu. Every item may have either a child menu which pops up when the item is selected or after a certain time delay or a message ID which is sent to the parent menu when the item is selected.
When a menu item is clicked it either pops up its submenu or sends its callback message ID to the parent menu.
A menuitem may have a submenu or a mesage ID (or none of those but that's quite pointless). The text of a menu item is made of two parts separated with a horizontal tab character ('\t'). The first part is printed on the left part of the item while the other part is printed on the right. Usually the left part contains the name of a command or selection and the right part contains a description of the matching keyboard shortcut. Also the left part may contain a character that is prefixed with '&'. This character will then be underlined and will act as a quick shortcut for navigating the menu. For example the text "&New\tCtrl-N" will produce a menu item that will read "New Ctrl-N". If text is NULL, the menu item will be a separator.
Alphabetic index Hierarchy of classes