MENUITEM

Top  Previous  Next

Syntax

MENUITEM text as STRING, style as UINT, id as INT

Description

Defines a menu item in a menu definition macro.

Parameters

text - Text of the menu item.

style - Style flags of menu item.

id - Identifier of menu item.

Return value

None

Remarks

A menu item is the selectable portion of a menu. The only style flags currently built in are @MENUCHECK and @MENUDISABLE for an initially checked menu item or initially disabled menu item. id must be a unique identifier greater then 0.

See Also: BEGINMENU, ENDMENU, MENUTITLE, BEGINPOPUP, ENDPOPUP, SEPARATOR, BEGININSERTMENU

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