MenuObject
Methods
-
AppendMenuItem(flags, item_id, text)
-
Parameters:
Name Type Description flags
number See Flags.js > Used in AppendMenuItem() item_id
number Integer greater than 0. Each menu item needs a unique id. text
string -
AppendMenuSeparator()
-
-
AppendTo(parent_menu, flags, text)
-
Parameters:
Name Type Description parent_menu
MenuObject flags
number See Flags.js > Used in AppendMenuItem() text
string -
CheckMenuItem(item_id, check)
-
Parameters:
Name Type Description item_id
number check
boolean -
CheckMenuRadioItem(first_item_id, last_item_id, selected_item_id)
-
Parameters:
Name Type Description first_item_id
number last_item_id
number selected_item_id
number -
TrackPopupMenu(x, y, flagsopt) → {number}
-
Parameters:
Name Type Attributes Default Description x
number y
number flags
number <optional>
0 See Flags.js > Used in TrackPopupMenu(). Returns:
number