Paradox Community

Items in pnews.paradox-programming

Subject:Re: PopUpMenu keyStroke
Date:19 Dec 2019 04:09:05 -0400
From:"Thies Grimm" <thies.grimm@t-online.de>
Newsgroups:pnews.paradox-programming

Hi Mark,

if the user just looks at the PopUpMenu, doesn't make a choice (one Value
is marked Checked) and presses 'Enter' I just get an empty string. 

It's what some users do!

Thies



Mark Bannister <markRemove@THISinjection-moldings.com> wrote:
>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