{{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. 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 GUISetState(-1,@SW_DISABLE) | |**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 Case or (in OnEvent mode) a call to GUISetOnEvent 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 GUICtrlSetState(-1, $GUI_HIDE) |