mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-27 07:46:33 +00:00
3a33e6baaf
Rename all .CC files to .ZC extension.
28 lines
1.1 KiB
Text
Executable file
28 lines
1.1 KiB
Text
Executable file
$WW,1$A pull-down menu appears when you move the mouse to the top of the screen. Menus are created with $LK,"MenuPush",A="MN:MenuPush"$(), $LK,"MenuFilePush",A="MN:MenuFilePush"$(), $LK,"MenuNew",A="MN:MenuNew"$() or $LK,"MenuFile",A="MN:MenuFile"$() and assigned to $FG,4$Fs->cur_menu$FG$. The format is:
|
|
|
|
$FG,2$
|
|
File
|
|
{
|
|
Open(,'O');
|
|
Save(,'S');
|
|
Exit(,CH_SHIFT_ESC);
|
|
}
|
|
Edit {
|
|
Cut(,,SC_DELETE|SCF_SHIFT);
|
|
Paste(,,SC_INS|SCF_SHIFT);
|
|
}
|
|
Misc {
|
|
Opt1(MESSAGE_CMD,M_OPTION1);
|
|
Opt2(MESSAGE_CMD,M_OPTION2);
|
|
}
|
|
Help
|
|
{
|
|
Help(,'?');
|
|
About(,'/');
|
|
}
|
|
$FG$
|
|
The first arg is the message code and it is optional with the default being $LK,"MESSAGE_KEY_DOWN_UP",A="MN:MESSAGE_KEY_DOWN_UP"$. The second arg is the message $FG,2$arg1$FG$ value which is $LK,"ASCII",A="MN:CH_CTRLA"$ of the key in the case of $LK,"MESSAGE_KEY_DOWN",A="MN:MESSAGE_KEY_DOWN"$. The third arg is the message $FG,2$arg2$FG$ value which is the $LK,"scan_code",A="FI:::/Doc/CharOverview.DD"$$FG$ of the key in the case of $LK,"MESSAGE_KEY_DOWN",A="MN:MESSAGE_KEY_DOWN"$.
|
|
|
|
Press $FG,2$<CTRL-SHIFT-l>$FG$ and "Insert ASCII/ScanCode".
|
|
|
|
See $LK,"::/Demo/PullDownMenu.ZC"$.
|