MnRemove¶
MnRemove removes a menu item or a complete menu.
-
bool = MnRemove(ssMenu, nMenu)
-
bool = MnRemove(ssMenu, nMenu, nItem)
Return Value
If the function succeeds, the return value bool is TRUE (1); otherwise it is FALSE (0).
Parameters
-
ssMenu
ssMenu is the name of the menu bar. The following menus are available:
Value | Meaning |
---|---|
“Editor” | This menu appears when an editor is active. |
“Document” | This menu appears when a document with diagram pages is active. |
“DocumentServer” | This menu appears when the UniPlot document page is embedded in another application program (OLE). |
“Command” | This menu appears when the UniScript command window is active. |
“Main” | This menu appears when no MDI window is available in the UniPlot main window. This is normally the case after UniPlot has be started. |
-
nMenu
nMenu is the position of the menu. The entry that lies furthest left (normally the File Menu) has the position 1.
-
nItem
nItem is the position of the menu within the menu nMenu.
Example
MnRemove("Editor", 5);
See also
id-1515303