GUI Control - Menu
27 scripting commands. Also as Markdown for agents.
- menuActionReturns action stored in item on given path in CT_MENU_STRIP control.
- menuAddAdds new submenu entry into item on given path.
- menuCheckedReturns if item on given path is checked or not.
- menuClearRemoves all entries from given menu strip.
- menuCollapseCollapses item on given path and all its children.
- menuDataReturns data stored in menu entry on given path.
- menuDeleteDeletes menu entry on given path.
- menuEnableEnables or disables menu entry on given path.
- menuEnabledReturns if menu entry on given path is enabled or not.
- menuExpandExpands given menu entry on given path and all its parents so entry is visible.
- menuHoverReturns path to menu entry mouse is currently hovering over.
- menuPictureReturns picture set into item on given path.
- menuSetActionSets new action into menu entry on given path.
- menuSetCheckSets item on given path to be checked or not. By default menu strip entries are not checkable. Once this command was executed, an entry can become…
- menuSetDataSets data into menu entry on given path.
- menuSetPictureSets new picture into menu entry on given path. The picture will be replaced by a tick if the entry was set to checkable with menuSetCheck.
- menuSetShortcutSets shortcut of given menu strip entry.
- menuSetTextSets text of given menu strip entry.
- menuSetURLSets weblink (URL) of given menu strip entry, subject to `allowedHTMLLoadURIs[]` whitelisting in CfgCommands config.
- menuSetValueSets new value into menu entry on given path.
- menuShortcutReturns shortcut related to menu entry on given path in form of a bitflag. To get the shortcut text use menuShortcutText.
- menuShortcutTextReturns a string containing shortcut text for menu item on the given path.
- menuSizeReturns how many sub entries is in item on given path.
- menuSortSorts subentries of item on given path by their text.
- menuTextReturns current text set in menu entry on given path.
- menuURLReturns current URL set in entry on given path.
- menuValueReturns current value set in menu entry on given path.