Paradox Community

Items in pnews.paradox-programming

Subject:Re: PopUpMenu keyStroke
Date:Wed, 18 Dec 2019 12:36:56 -0600
From:Mark Bannister <markRemove@THISinjection-moldings.com>
Newsgroups:pnews.paradox-programming
Enter selects the currently hilighted option.  Escape returns blank.

On 12/18/2019 8:07 AM, Thies Grimm wrote:
> 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
> 


Copyright © 2004 thedbcommunity.com