Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NYCoord
Message
From
24/12/2010 11:25:28
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
24/12/2010 10:59:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01493758
Message ID:
01493800
Views:
75
>Thanks, yes that will set the cursor relative to the desktop... I'd like to be able to set it relative to the VFP form.

Well then you'll have to calculate a bit - the position on your form plus position of your form should give you position on the screen (a bit more complicated if it's not a desktop form).

>>>Form methods are available to determine the mouse coordinates (MouseDown, MouseMove, MouseUp, MouseWheel all have LPARAMETERS nButton, nShift, nXCoord, nYCoord)
>>>
>>>Can I set the nXCoord and nYCoord values programatically in order to position the mouse cursor?
>>>
>>>dg
>>
>>Does that help?
>>
>>
? SetCurPos(300,300)
>>
>>FUNCTION SetCurPos(lnX, lnY)
>>  DECLARE INTEGER SetCursorPos IN WIN32API ;
>>    INTEGER, ;
>>    INTEGER
>>  RETURN SetCursorPos(lnX, lnY)
>>ENDFUNC

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform