Subject: | PopUpMenu keyStroke
| Date: | 18 Dec 2019 10:07:23 -0400
| From: | "Thies Grimm" <thies.grimm@t-online.de>
| Newsgroups: | pnews.paradox-programming
|
Moin, Moin,
I'm using a little script to show a popupmenu for a users choice.
How can I tell wether a user presses 'Escape' or 'Enter'?
little example:
=======================================================
var
p PopUpMenu
stChoice String
endVar
p.addText("Paris")
p.addText("Hamburg")
p.addText("Sydney", menuChecked)
p.addText("Chicago")
stChoice = p.show()
if not isBlank(stChoice) then
msgInfo("my Choice", stChoice)
endIf
=======================================================
If the user presses 'Enter' I get an empty Result - just the same if the
user presse 'Escape'.
I want to use the menuChecked value if the user presses 'Enter'.
So how can I tell?
Thanks
_________
To do: do
|