Files
TempleOS-Rijn/SparrowOS/Doc/Menus.TXT
T
2018-09-08 21:45:28 +02:00

28 lines
1022 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,"::/SparrowOS/Demo/PullDownMenu.CPP.Z","FI:::/SparrowOS/Demo/PullDownMenu.CPP.Z"$.