### Menu definition file syntax.

#### General

Every line of the file contains one operator. Operator syntax is:
Operator_Keyword, param1, param2, ...[, paramn]
Where [] brackets indicate optional parameter. Oprional parameter can be only one - the last parameter. The actual number of parameters depends on the keyword (see below):

#### Operator keywords

POPUP, POPUP END, ITEM, ACCELERATED ITEM, SEPARATOR, RADIOGROUP, RADIOGROUP END

POPUP, Caption [, name]

> Begins a menu popup/branch.
> Parameters:
> Caption - caption of the pop up menu.
> name - internal name of the pop up menu
> Short form:
> P, Caption [, name]

POPUP END

> Ends the current pop up
> Short form:
> PE

ITEM, Caption, Handler, Info [, name]

> Defines a menu item in the current pop up or radio group
> Parameters:
> Caption - caption of the menu item.
> Handler - name of the handler function (without () brackets). Frame parameter of the compiler defines which browser frame contains the function.
> Info - Custom information string of your choice. To leave it empty leave one space after the comma.
> name - internal name of the menu item
> Short form:
> I, Caption, Handler, Info [, name]

ACCELERATED ITEM, Accel, Caption, Handler, Info [, name]

> Defines a menu item with associated accelerator key combination in the current pop up or radio group
> Parameters:
> Accel - Accelerator key for the menu item
> Syntax: modifier1[-modifier2[-modifier3]]-Key
> modifier - is one of these keywords:
> Ctrl - Control key
> Alt - Alt key
> Shift - Shift key
> Key - is a character or special keyword for non character keyboard keys
> Examples: Ctrl-Shift-A
> Ctrl-Alt-X
> Ctrl-Shift-F2
> F3
> Caption - caption of the menu item.
> Handler - name of the handler function (without () brackets). Frame parameter of the compiler defines which browser frame contains the function
> Info - Custom information string of your choice.To leave it empty leave one space after the comma.
> name - internal name of the menu item
> Short form:
> A, Accel, Caption, Handler, Info [, name]

SEPARATOR

> Defines a menu separator.
> Shor form:
> S

RADIOGROUP [, name]

> Begins a radio group.
> Parameters:
> name - internal name of the radio group
> Short form:
> R [, name]
> Remarks: Radio groups can not be nested and pop up menus can not be defined inside a radio group.

RADIOGROUP END

> Ends the radio group
> Short form:
> RE

' (quote) as first non blanc characer means comment line