Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Auto Close a form?
Message
 
 
To
25/01/2009 10:50:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01376662
Message ID:
01376873
Views:
16
>Greg,
>
>I stated I was using it in VPM and that is the framework I use for all of my applications but it was a typo, as I am doing all of my testing in just plain VFP9 in the IDE. From all my testing, it appears that MROW() and MCOL() pick up mouse moves any where on the desktop and other applications. This seems strange to me since this is VFP command. I would have thought it would only pick up mouse movement over a VFP application but the line of code: WAIT WINDOW NOWAIT "Resetting "+lcPos fires anytime I move the mouse over any application and even while just over the Desktop.
>
>I can get it to just fire when just over the form by putting code in the thisform.form1.mousemove event and I figure I should be able to do the same thing for the entire application by putting code in the _SCREEN.mousemove event but I don't know how access the _SCREEN.mousemove event and add code to this method.
>
>Also, I just found some code where someone has used the ON KEL LABEL MOUSE command to contol exiting a form and this looks promising as it only responds to the VFP application window. It doesn't track mouse movement but it does respond to mouse clicks and that should be O.K. for what I'm trying to do.
>
>Sorry to be so "dumb" about this but this is the first time I have found the need to track mouse movements so it's virgin territory for me.
>
>Thanks,
>Robert
>
I think I meant this Re: Form has MouseMove but no MouseLeave Thread #1311075 Message #1311104
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform