Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command Button events
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00271224
Message ID:
00271232
Views:
19
>I have a button that responds to a click event, and want to add to that a response to a click-and-hold event. So if the user clicks the button and holds the mouse button down, multiple button clicks would be initiated. Is there a simple event for this? I tried the "mouse down" event but it didn't work like I was hoping...
>
>Thanks!

Kile, right off the top of my head - I think if you add, say a form property lMouseIsDown and set it to .T. in MouseDown event for that button, and reset to .F. in MouseUp, you can do your code in Click like:

IF thisform.lMouseDown
* click code here
ELSE
DO WHILE thisform.lMouseDown
* click code here
ENDDO
ENDIF
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform