MnGetStrings¶
MnGetStrings returns the menu item strings of the specified menu.
-
svMenus = MnGetStrings()
-
svMenuStrings = MnGetStrings(ssMenu)
-
svMenuStrings = MnGetStrings(ssMenu, nMenu)
Return Value
svMenuStrings is a string vector with the menu item names.If the function is called without parameters the return value is a string vector with the names of the menu bars. See parameter ssMenu.
In case of an error the return value is an empty string.
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 farthest left (normally the File Menu) has the position 1.
Example
* MnGetStrings("SynEditor")
&File
&Edit
&View
UniScript
&Tools
&Window
&Help
* MnGetStrings("SynEditor", 2)
&Undo Strg+Z
&Redo Strg+Y
Cu&t Ctrl+X
&Copy Ctrl+C
&Paste Ctrl+V
&Delete Del...
Select &All Ctrl+A
&Find... Alt+F3
Find &Next F3
Find &Previous Shift+F3
Re&place... Ctrl+H
&Objekt Eigenschaften Alt+Enter
Alles &markieren
&Zeilenumbruch
See also
id-1189615