| Subject |
Re: pushbutton |
| From |
edward racht <e.racht@gmail.com> |
| Date |
Sun, 7 Mar 2021 18:11:57 -0500 |
| Newsgroups |
dbase.getting-started |
| Attachment(s) |
OnLeftMouseUp.PNG |
Greetings,
just a question.
Would this be the same problem that plagues radiobuttons?
The following thread is in 'programming' newsgroup 2/7/2021
Here is a solution that worked recently.
just for the record, I have finally solved this issue.
After marc's solution with the keyboard "{Tab}" which was working
pretty fine, a post in this forum way back from 2005, where a user was
facing the very same issue with getting focus only at the second click,
see attached screen shot.
The solution was as simple as good - instead of using the radiobutton's
OnChange event, the *OnLeftMouseUp* event was employed.
This has brought two other advantages to simplify my code: Now I can do
without checking if the event was firing for the radioutton with its
value set to true - 'on LeftMouseUp' the radiobutton's value must be TRUE.
And OnLeftMouseUp fires just once, just for the radiobutton which was
clicked, leaving the other radiobuttons in the group untouched. This
helped me in other places as well to straighten the code a good deal.
Perhaps this info helps somebody else ....
Thanks to everybody here!
Kind regards, Heinz
see attachment onleftmouseup.png
|
|