Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command button Not Enabled but still hears click?
Message
From
02/01/1999 21:30:28
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00172199
Message ID:
00172209
Views:
27
Vern,

It sounds like your form isn't getting refreshed after you reset the enabled property of the buttons.
Another approach would be to add "flag" property to the form that get's set when they click on go/doit button. Then the other button's WHEN can check the value of the flag before going ahead.

>Hi,
>
>I disable the command buttons on my form as soon as the user clicks on the go/"do it" button (and re-enable when processing is finished).
>
>If the user clicks on the "go" button a second time while it is disabled, the command button's click event is fired a second time after it finishes the first time.
>
>Is there a way to completely disable the button so any clicks while disabled are completely ignored?
>
>Thanks!
Previous
Reply
Map
View

Click here to load this message in the networking platform