getGlobalMenuOptions
Return a Struct with the menu options to be added to the IDE's Main Menu ( ≡ ).
public operation getGlobalMenuOptions params struct pMenu: out endparams ; <... Your code here ...> end ; operation getGlobalMenuOptions
Parameters
pMenu—a Struct that defines the options to be added to the main menu, with optional separators between menu options. For each option, the Struct must define the displayed label, the callback component and operation to be activated, and whether the option is enabled. For details, see Menu Plug-In Structs.
Description
The main menu is used to start editors and dialogs that require no context about the current editor or object. If you want to add menu options that use a current object, do so using the operation getEditorMenuOptions.
Example
For example, the following code returns a Struct containing a menu option called System Info, which is implemented by the callback operation "SYNC_CPT".displaySystemInfo
.
public operation getGlobalMenuOptions params struct pMenu: out endparams pMenu->$name = "menu" call addOption(pMenu, "System Info", "Sync_Cpt", "displaySystemInfo", 1) return 0 end ;- public operation getGlobalMenuOptions