| Subject |
Re: pushbutton |
| From |
Ken Mayer <dbase@nospam.goldenstag.net> |
| Date |
Tue, 29 Nov 2022 12:01:02 -0800 |
| Newsgroups |
dbase.getting-started |
On 11/29/2022 10:57 AM, Mustansir Ghor wrote:
> Dear Ken sir and Mervyn Sir
>
> I am little scared for posting this here. In case my observation proves wrong then its ok but I need to put it here. I tested Mervyn Sir program and even before posting my issue i had made samething as selftest. However to portray my problem I simplified my form and attaching here.
>
> The form has 4 objects. Combobox, Entryfield, Pushbutton and text.
>
> The combobox is filled with array data (sample data).
>
> When you run the form, comboxbox gets focus, you can select anydata and press Tab key. It goes to Entryfield, here you need to enter amount (any amount) and then press Tab key again so it moves to pushbutton (here if you click or press space bar then it works fine and displays the contents in text box) . If you press Enter key once nothing happens, On pressing 2nd time it then displays the contents in text box.
>
> On otherhand when focus comes to Entryfield and after typing the value you press Enter key and then move to pushbutton with Tabkey, then pushbutton works on 1st instance.
>
> Pls bear with me if my observations are proven wrong but it will help to correct myself as to where I am making mistake.
So: 1) Select data from combobox. Done.
2) tab to entryfield, entered something. Done
3) tab to pushbutton, press Enter key. Done.
Didn't work the first "Enter" but did the second.
Tried this again, closed the form, and pressed enter on the pushbutton
which clearly has focus and it did not fire, pressed it again and it did.
Weirdly the spacebar seems to work the first time, but not the enter key.
Dunno what to tell you.
Ken
--
*Ken Mayer*
Ken's dBASE Page: http://www.goldenstag.net/dbase
The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm
dBASE Tutorial: http://www.goldenstag.net/dbase/Tutorial/00_Preface.htm
dBASE Web Tutorial: http://www.goldenstag.net/dbase/WebTutorial/00_Menu.htm
dBASE DOS to Windows Tutorial:
http://www.goldenstag.net/dbase/DtoWTutorial/00_Menu.htm
|
|