Subject: | Re: PopUpMenu keyStroke
| Date: | Thu, 19 Dec 2019 08:13:10 -0600
| From: | Mark Bannister <markRemove@THISinjection-moldings.com>
| Newsgroups: | pnews.paradox-programming
|
The choice has to be hi-lighted which is not automatic. They would have
to hit an arrow key first to hi-light the choice then hit Enter.
Otherwise no choice has been made and you will get blank.
On 12/19/2019 2:09 AM, Thies Grimm wrote:
> 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
>>>
>>
>
|