User Tools

Site Tools


Sidebar

<< Back


koda:en:documentation:control_menuitem

MenuItem

A menu is a tree of MenuItems. Each MenuItem is a control and has its own properties.

#remarks_header[Properties:]#

AutoHotkeysAccelerator 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
CaptionText of menu item
CheckedIf 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.
EnabledIf False, disables (grays) the menu item and generates <color blue>GUISetState(-1,@SW_DISABLE)</color>
GroupIndexItems that have RadioItem property and with the same GroupIndex will be grouped.
HotKeyKeystroke that simulates choosing menu item
NameName of menu item and of the variable that is assigned its control ID in generated code. If not specified, no variable is generated
OnClickKoda 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
RadioItemSeveral 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.
VisibleIf False, generates <color blue>GUICtrlSetState(-1, $GUI_HIDE)</color>
koda/en/documentation/control_menuitem.txt · Last modified: 2014/07/10 10:48 (external edit)