27 lines
978 B
Plaintext
27 lines
978 B
Plaintext
$WW,1$A menu appears when you move the mouse to the top of the screen. Menus are created with $LK,"MenuPush","MN:MenuPush"$(), $LK,"MenuFilePush","MN:MenuFilePush"$(), $LK,"MenuNew","MN:MenuNew"$() or $LK,"MenuFile","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(MSG_CMD,M_OPTION1);
|
|
Opt2(MSG_CMD,M_OPTION2);
|
|
}
|
|
Help
|
|
{
|
|
Help(,'?');
|
|
About(,'/');
|
|
}
|
|
$FG$
|
|
The first arg is the msg code and it is optional with the default being $LK,"MSG_KEY_DOWN_UP","MN:MSG_KEY_DOWN_UP"$. The second arg is the msg $FG,2$p1$FG$ value which is $FG,2$ASCII$FG$ of the key in the case of $LK,"MSG_KEY_DOWN","MN:MSG_KEY_DOWN"$. The third arg is the msg $FG,2$p2$FG$ value which is the $FG,2$Scan Code$FG$ of the key in the case of $LK,"MSG_KEY_DOWN","MN:MSG_KEY_DOWN"$.
|
|
|
|
See $LK-A,"::/TempleOS/Demo/PullDownMenu.CPP"$.
|