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. Alt+F 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 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> |