Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command Button events
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00271224
Message ID:
00271232
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform