Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving the mouse pointer
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00362899
Message ID:
00363953
Views:
38
Roi,

You objtoclient() may not be needed if your ActiveX is directly contained by the form, if it's inside other containers you will need to use it to resolve the object relative coordinates to form relative. You are also going to need to use the WINDOW clause because otherwise it'll be relative to the main VFP window.

You may want to look if there is an API function that will just move the mouse a delta number of pixels from where it is. Although there's no guarantee that the popup menu displayed down and left from the mouse it might have opened up and right depending on where the form is on the screen. How about just keyboarding a downarrow followed by an uparrow to activate the menu?

>Thanks, I looked at objtoclient() but I'm not sure what to do with it. I can't figure out how to get the mouse pointer position from it.
>
>Am I missing something? I just need the mouse position in pixels.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform