ADD_MENU
|
Syntax: |
ADD_MENU(<Menu Level>,<Mainmenu>,<Submenu>,<Macroname>)
|
||||||||
|
|
|
||||||||
|
Meaning: |
The function ADD_MENU creates a branch of the
menu tree, which is displayed in the main window. When creating a menu the following steps have
to be taken: 1. Create branches of the menu with the
function ADD_MENU 2. Start the menu with START_MENU . ADD_MENU returns the following values:
|
||||||||
|
Parameter: |
|
||||||||
|
Sample: |
H% = ADD_MENU("1","&File","&Open;&Delete;&Show",MEN.MACRO) IF H%<>0 THEN
... Error... ENDIF H% = ADD_MENU("2","&Print
F8","@single.gif,&Single;;@all.gif,&All",MEN.MACRO) IF H%<>0 THEN
... Error... ENDIF H% = ADD_MENU("3","&Exit
CTRL/E","",MEN.MACRO) IF H%<>0 THEN
... Error... ENDIF H% = ADD_MENU("2.3","&All","&AscendingA&Descending",MEN.MACRO) IF H%<>0 THEN
... Error... ENDIF |
||||||||
|
See also: |
|