.. highlightlang:: us .. index:: MenuCreatePopup .. _menucreatepopup: MenuCreatePopup =============== .. us.tag MenuCreatePopup NOTREADYENGLISH New300 Menu :ref:`MenuCreatePopup` creates a popup menu. .. function:: bool = MenuCreatePopup(ssName, svMenuCommands) .. us.return **Return Value** *bool* is TRUE if the menu could be created and otherwise FALSE. .. us.params **Parameters** .. uparam:: ssName *ssName* is the name of a popup menu. .. uparam:: svMenuCommands *svMenuCommands* is a string vector of function names or popup menu names. The functions must be registered with :ref:`MnSetCommand` or :ref:`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 :ref:`MenuCreatePopup`. "My Group1" is the menu item text. An empty string inserts an item separator. .. us.example **Example** Some code examples for adding menu items to popup menus can be found in the :ref:`overview-menus` and :ref:`MnInsertPopup`. .. seealso:: :ref:`overview-menus`, :ref:`MenuInsertCommands`, :ref:`MnSetCommand`, :ref:`RegisterCommand`, :ref:`MnInsertPopup` :sub:`id-62551`