class
MenuObject
js/foo_uie_jsplitter.js:7475
AppendMenuItem(flags, item_id, text)
| Name | Type | Description |
|---|---|---|
flags | number | See flags like MF_SEPARATOR |
item_id | number | Integer greater than 0. Each menu item needs a unique id. |
text | string |
AppendMenuSeparator()
AppendTo(parent_menu, flags, text)
| Name | Type | Description |
|---|---|---|
parent_menu | MenuObject | |
flags | number | See flags like MF_SEPARATOR |
text | string |
CheckMenuItem(item_id, check)
| Name | Type | Description |
|---|---|---|
item_id | number | |
check | boolean |
CheckMenuRadioItem(first_item_id, last_item_id, selected_item_id)
| Name | Type | Description |
|---|---|---|
first_item_id | number | |
last_item_id | number | |
selected_item_id | number |
SetDefault(item)
Sets a menu item or submenu as the default item. The default item is displayed in bold.
Calling this method again changes the default item.
Only one item can be set as the default for each menu object.
| Name | Type | Description |
|---|---|---|
item | number|MenuObject | Menu item id or a submenu appended directly to this menu. |
Error — If the specified menu item does not exist or the submenu does not belong directly to this menu.
TrackPopupMenu(x, y, flags)
| Name | Type | Description |
|---|---|---|
x | number | |
y | number | |
flags = 0optional | number | See flags like TPM_LEFTALIGN |
number