Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can you tell if the mouse went off a form?
Message
From
28/10/2002 17:23:07
 
 
To
28/10/2002 17:08:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00716218
Message ID:
00716223
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform