Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can you tell if the mouse went off a form?
Message
De
28/10/2002 17:23:07
 
 
À
28/10/2002 17:08:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00716218
Message ID:
00716223
Vues:
16
>seeing as there is no MouseEnter, or MouseLeave method for forms, can anyone suggest a workaround. i want to do something different for menus - using a .gif that changes when the mouse rolls over it and, hopefully, opening a small form next to it containing more .gifs that change the same way. i need the new little 'menu form' to release when the mouse leaves it...any ideas?

You can detect when the mouse moves from form to form (or another app) by running a timer and testing the hWnd of the Window owning the coordinates that the mouse is occupying; this will require a couple of API calls to achieve, and a timer to fire at a fairly frequent interval (about every 20ms or so as to not appear jerky.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform