Menus

A pull-down menu appears when you move the mouse to the top of the scrn. Menus are created with MenuPush(), MenuFilePush(), MenuNew() or MenuFile() and assigned to Fs->cur_menu. The format is: File { Open(,'O'); Save(,'S'); Exit(,CH_SHIFT_ESC); } Edit { Cut(,,SC_DELETE|SCF_SHIFT); Paste(,,SC_INS|SCF_SHIFT); } Misc { Opt1(MSG_CMD,M_OPTION1); Opt2(MSG_CMD,M_OPTION2); } Help { Help(,'?'); About(,'/'); } The first arg is the msg code and it is optional with the default being MSG_KEY_DOWN_UP. The second arg is the msg arg1 value which is ASCII of the key in the case of MSG_KEY_DOWN. The third arg is the msg arg2 value which is the scan_code of the key in the case of MSG_KEY_DOWN. Press <CTRL-SHIFT-l> and "Insert ASCII/ScanCode". See ::/Demo/PullDownMenu.HC. CMenu Class class CMenu CMenuEntry Class class CMenuEntry MenuDel Funct Delete a manu. You probably don't need this. MenuEntryFind Funct Find pulldown entry. Fs->cur_menu is probably the menu you want. MenuFile Funct Parse a pulldown menu file. You probably don't need this. MenuFilePush Funct Save old pulldown menu and replace with new from file. MenuNew Funct Parse a menu. You probably don't need this. MenuPop Funct Restore old pulldown menu. Delete just-deactivated menu. MenuPush Funct Save old pulldown menu and replace with new from str. MenuSubEntryFind Funct You probably don't need this. Use dir / and MenuEntryFind().