popupMenu is undoable, queryable, and editable.
This command creates a popup menu and attaches it to the current
control if no parent is specified. The popup menu is posted with the
right mouse button by default.
In query mode, return type is based on queried flag.
Long name (short name) |
Argument types |
Properties |
|
-allowOptionBoxes(-aob)
|
boolean
|
|
|
Indicate whether the menu will be able to support option box
menu items. An error results if an option box item is added to a
menu that doesn't allow them. This flag may be queried and must be
specified when the popup menu is created. The default value is
false.
|
|
-altModifier(-alt)
|
boolean
|
|
|
Specify this flag if the Alt modifier must be pressed when
posting the popup menu.
|
|
-button(-b)
|
int
|
|
|
Indicate which button posts the popup menu. Valid values
range from 1 to 3 where 1 is the left most button on the mouse.
|
|
-ctrlModifier(-ctl)
|
boolean
|
|
|
Specify this flag if the Cntl modifier must be pressed when
posting the popup menu.
|
|
-defineTemplate(-dt)
|
string
|
|
|
Puts the command in a mode where any other flags and arguments are
parsed and added to the command template specified in the argument.
They will be used as default arguments in any subsequent
invocations of the command when templateName is set as the
current template.
|
|
-deleteAllItems(-dai)
|
|
|
|
Delete all the items in this menu.
|
|
-exists(-ex)
|
|
|
|
Returns whether the
specified object exists or not. Other flags are ignored.
|
|
-itemArray(-ia)
|
|
|
|
Return string array of the menu item names.
|
|
-markingMenu(-mm)
|
boolean
|
|
|
Set the marking menu state of this popup menu.
|
|
-numberOfItems(-ni)
|
|
|
|
Return number of items in the menu.
|
|
-parent(-p)
|
string
|
|
|
Specify the control that the popup menu will appear in.
|
|
-postMenuCommand(-pmc)
|
script
|
|
|
Specify a script to be executed when the popup menu is about
to be shown.
|
|
-postMenuCommandOnce(-pmo)
|
boolean
|
|
|
Indicate the -pmc/postMenuCommand should only be
invoked once. Default value is false, ie.
the -pmc/postMenuCommand is invoked every time the popup menu is
shown.
|
|
-shiftModifier(-sh)
|
boolean
|
|
|
Specify this flag if the Shift modifier must be pressed
when posting the popup menu.
|
|
-useTemplate(-ut)
|
string
|
|
|
Forces the command to use a command template other than
the current one.
|
|