General information
Category:
Forms & Form designer
Hi Vern..
I think the issue relates to queued-up events. Regardless of whether the CommandButton Object is enabled - clicking the mousebutton does indeed generate a windows event. By the time the CommandButton gets enabled again,the second click can be processed. Here is one example of click method code that does fix the problem:
This.Enabled = .F.
for x = 1 to 200
If Mod(x,10) = 0
DoEvents
Endif
Acti screen
?x
Next x
This.Enabled = .T.
The call to DoEvents allows for queued-up click events to be processed. Because the process while the enabled property is set to .F., nothing happens. You will want to use DoEvents sparingly as it will degrade performance quite a bit.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only