Subject Re: pushbutton
From Lee Grant <>
Date Wed, 30 Nov 2022 03:59:05 -0500
Newsgroups dbase.getting-started


Nice of you to find this, I just discovered the problem (having to hit
enter after selection or input) after doing an additional Win Update
before going back in to make sure things worked...when I was playing
with it again and decided to try hitting enter after every input...and
viola, it worked as you mention. It's a bug for sure, since it goes
counter to what we've been used to with data entry keyboarding. I was
thinking of doing an inkey() thing to see if that would work.

Thanks for finding and finding a fix for this thing. :)


On 11/30/2022 3:15 AM, Mervyn Bick wrote:
> On 2022/11/28 20:42, Mustansir Ghor wrote:
>> Dear All
>> When Pushputton gets focus in dbase 2019, I need to press Enter button
>> twice to execute the push button whereas same form if I run in dbase
>> 11 plus the pushbutton executes with focus on it by pressing it only
>> once.
>> If anybody has any clue where I need to correct pls advice me.
> This is a bug that first appeared in dBASE 12 and has continued on into
> dBASE 2019.
> I have created a custom pushbutton ( that uses the
> CALLBACK command to trap when the user presses the Enter key while the
> pushbutton has focus.  This immediately triggers the pushbutton's
> onClick event.
> Ken, you may want to consider this control for inclusion in the dUFLP.
> An example form and the custom control are attached.
> Mervyn.