Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting mouse position?
Message
 
 
À
18/09/2011 10:36:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01523849
Message ID:
01523884
Vues:
35
>>Hi,
>>
>>How would you recommend to detect a current mouse position on the VFP application screen? What happens is a user clicks and a function from the www.news2news.com (wonderful tools) helps me to catch that the mouse was clicked. But I need to find it if it was clicked within a certain area. TIA.
>
>
>In the mousemove property/method of a form add these lines of code and run the form and move your mouse.
>
>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>? nXcoord
>? nYCoord
>
>So the coordinates are always available as nXCoord, nYCoord
>
>Have a nice day :-)

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform