MenuCreatePopup¶
MenuCreatePopup creates a popup menu.
-
bool = MenuCreatePopup(ssName, svMenuCommands)
Return Value
bool is TRUE if the menu could be created and otherwise FALSE.
Parameters
-
ssName
ssName is the name of a popup menu.
-
svMenuCommands
svMenuCommands is a string vector of function names or popup menu names. The functions must be registered with MnSetCommand or RegisterCommand. To insert a popup menu item, the menu name and the menu item text must be separated by an @ sign. Example: “Group1@ My Group1” where Group1 is the popup menu name created with MenuCreatePopup. “My Group1” is the menu item text. An empty string inserts an item separator.
Example
Some code examples for adding menu items to popup menus can be found in the Overview Menus and MnInsertPopup.
id-62551