User Tools

Site Tools


koda:en:documentation:control_menuitem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

koda:en:documentation:control_menuitem [2014/07/10 10:48] (current)
Line 1: Line 1:
 +{{page>​commctrl}}
 +====== MenuItem ======
  
 +A menu is a tree of MenuItems. Each MenuItem is a control and has its own properties.
 +
 +#​remarks_header[Properties:​]#​
 +|**AutoHotkeys**|Accelerator keys, e.g. <​key>​Alt-f</​key>​ can display File menu: \\ **maAutomatic** - Koda assigns accelerator key \\ **maManual** - user assigns accelerator key by inserting & before a letter, e.g. E&xit \\ **maParent** - setting is inherited from Menu control |
 +|**Caption**|Text of menu item |
 +|**Checked**|If True: if RadioItem is False, the menu item will have a checkmark at left; if RadioItem is True, the mark will be a black circle. The marks are sticky. |
 +|**Enabled**|If False, disables (grays) the menu item and generates <color blue>​GUISetState(-1,​@SW_DISABLE)</​color>​ |
 +|**GroupIndex**|Items that have RadioItem property and with the same GroupIndex will be grouped. |
 +|**HotKey**|Keystroke that simulates choosing menu item |
 +|**Name**|Name of menu item and of the variable that is assigned its control ID in generated code. If not specified, no variable is generated|
 +|**OnClick**|Koda generates (in Message Loop mode) a <color blue>​Case</​color> ​ or (in OnEvent mode) a call to <color blue>​GUISetOnEvent</​color>​ and a skeleton event function. Double-click to right to open [[koda:​documentation:​proped_events_editor]] |
 +|**RadioItem**|Several menu items with RadioItem set to True and the same GroupIndex act like  a group of RadioButtons. One of them must have Checked set to True.|
 +|**Visible**|If False, generates ​ <color blue>​GUICtrlSetState(-1,​ $GUI_HIDE)</​color>​ |
koda/en/documentation/control_menuitem.txt ยท Last modified: 2014/07/10 10:48 (external edit)