Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a Timer and Object's MouseMove Event
Message
 
À
03/12/2001 14:04:22
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00588833
Message ID:
00588862
Vues:
26
This message has been marked as a message which has helped to the initial question of the thread.
>>>I have a container that exands whenever the mouse moves over a label in the corner and returns to default size when the mouse is not over it. I want to use a timer (I think) to have it only happen when the mouse is over the label for a specified time. This will eliminate inadvertant resizing of the container. I'm thinking of having a form property to handle whether the mouse is over the label and then compare the previous and current coordinates in the timer. Sound reasonable or is there a cleaner way? Thanks!
>>>
>>>Regards, Renoir
>>
>>Renoir,
>>What version of VFP? VFP 7 added the MouseEnter and MouseLeave events. You could create a timer when the label's MouseEnter event and if the timer interval hit, you could do the resizing. In the MouseLeave, release the timer object.
>>
>>Note: Createobject the timer object to a Form property so it doesn't go out of scope.
>>
>>HTH.
>
>Larry,
>
>VFP6. I didn't think to add that as we still have a VFP7 section in the forum...
>
>Renoir

You can download OnMouseOut() class from the download section.
It contain a sample with all you need to perform what you want.

HTH :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform