[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Initialize_Menu
Purpose Initializes a menu variable in preparation for the addition of
topics.
Decln. Initialize_Menu(var M:Nest_menu;Tit:MenuStr;W:byte;L:word);
Remarks M is the menu variable being initialized.
Tit is an optional title for the menu.
W is the width of the menu box. If a width 0 is used, the Toolkit
will determine a suitable width.
L is the number of visible menu lines (or topics) to display in
the menu window. If L is set to 0, the Toolkit will determine a
suitable value.
Example
VAR
MAIN_MENU,
FILE_MENU,
MISC_MENU: NEST_MENU
BEGIN
INITIALIZE_MENU(MAIN_MENU,'MAIN MENU',15,5);
INITIALIZE_MENU(FILE_MENU,'FILE COMMANDS',0,0);
INITIALIZE_MENU(MISC_MENU,'POT POURRI',0,20);
END;
See Also:
Add_Topic
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson