Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accidental Double Click
Message
From
22/01/2002 11:22:33
 
 
To
22/01/2002 10:45:33
Dennis Schuette
Customized Business Services, Llc
Yuma, Arizona, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00608435
Message ID:
00608462
Views:
13
I like everyone's responses. The only thing I can think of is something I used to do in FPD26. Set a form property when the code starts running and set it back when the code is finished. Check the value of it at the beginning of the code run and run the code in the click method if it is false (not running already), otherwise return.
Tracy
*--Create the form property lrunning and initiate it to .f. by default
IF THISFORM.lrunning
    RETURN
ELSE  && set it to true and run the code
    THISFORM.lrunning=.T.
ENDIF
*---Code here
*
*---Now set it back
THISFORM.lrunning=.F.
Just a thought,
Tracy


>I have one employee with a slight disability and he
>regularly will double click instead of single click.
>
>On the first line of the commandbutton Click() method:
> this.enabled=.f.
>then I re-enable it on the last line after doing some processing.
>The DoubleClick() method has no code.
>The Click() method is still running twice.
>
>How do I get VFP to ignore accidental subsequent Clicks?
>
>Thanks in advance.
>
>Dennis Schuette
>McElhaney Cattle Co.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform