BEGINMENU

Top  Previous  Next

Syntax

BEGINMENU win as WINDOW

Description

Begins defining a menu for a window or dialog. The window or dialog must be open before using this macro.

Parameters

win - Window or dialog to add menu to.

Return value

None

Remarks

Every BEGINMENU statement must be paired with an ENDMENU statement. This is a high level macro for adding an unlimited number of menu items, pop-ups and titles. The menu macros are translated by the compiler into the appropriate calls to CREATEMENU, APPENDMENU, INSERTMENU and SETMENU.

See Also: ENDMENU, MENUITEM, MENUTITLE, BEGINPOPUP, ENDPOPUP, SEPARATOR, BEGININSERTMENU, CONTEXTMENU

Example usage

BEGINMENU win
     MENUTITLE "&File"
     MENUITEM "Open",0,1
     MENUITEM "Close",0,2
     BEGINPOPUP "Save As..."
          MENUITEM "Ascii",0,3
          MENUITEM "Binary",0,4
     ENDPOPUP
     SEPARATOR
     MENUITEM "&QUIT",0,5
     MENUTITLE "&Edit"
     MENUITEM "Cut",0,6
ENDMENU