DEFINE MAIN MENU
  

Creates a main menu definition.

SYNTAX

DEFINE MAIN MENU [ OF<ParentWindowName> ]

[ DEFINE ] [ MENU ] POPUP <cPopupCaption>
[ NAME <
cPopupName> ]
[ IMAGE <
cImage> ]
[ FONT <
cFont> ]

MENUITEM <cItemCaption>
ACTION <
ActionProcedureName> | <bBlock>
[ NAME <
MenuItemName>]
[ IMAGE <
cImageName> | ICON <cIcon> ] ]
[ CHECKMARK <
cImage> ]
[ FONT <
cFont> ]
[ CHECKED ]
[ DISABLED ]
[ MESSAGE <
cMessage> ]
[ BREAKMENU ]
[ DEFAULT ]
....
...
[ SEPARATOR ]
...
...

[ DEFINE POPUP <cPopupCaption> ]
[ NAME <cPopupName> ]
[ IMAGE <cImage>]
[ FONT <
cFont> ]

MENUITEM <cItemCaption>
ACTION<
ActionProcedureName> | <bBlock>
[ NAME <
MenuItemName>]
[ IMAGE <
cImageName> | ICON <cIcon> ] ]
[ CHECKMARK <
cImage> ]
[ FONT <
cFont> ]
[ CHECKED ]
[ DISABLED ]
[ MESSAGE <
cMessage> ]
[ BREAKMENU ]
[ DEFAULT ]
....
...
[ SEPARATOR ]
...
...

[ END POPUP ]

[ [DEFINE] POPUP <cMRUCaption> ]
.....

MRU[ITEM] [ <cItemCaption> ]                    // caption for empty MRU item
[ INI | FILENAME | FILE | DISK> <
cIniFile> ]  // .INI to manipulate
[ SECTION <
cSection> ]            // The name of the INI section
[ SIZE | ITEMS> <
nItems> ]       // The number of MRU items to manage
[ ACTION MsgInfo(
cMruItem ) ] // cMruItem is automatically provided
[ NAME <
cName> ]                   // The name of MRU items (default is "MRU_#")

[ END POPUP ]


END POPUP
...
...

END MENU


Additional MRU functions:

·     AddMRUItem(<NewItem>, "OnClickFunc(Item)")
·     AddMenuElement(<NewItem>, "OnClickFunc(Item)")
·     SaveMRUFileList()
·     ClearMRUList()

MenuItem Properties:

·     Checked
·     Enabled

EXAMPLE:

See demos in :
\Samples\Basic\Menu
\Samples\Basic\Menu_2
\samples\Advanced\MenuEx
and sample  in Chapter Adding The Main Menu