Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find Pos X,Y of the cursor position?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00805096
Message ID:
00805121
Views:
25
The cursor in WIndows is called 'caret'. You can use GetCaretPos WIN API to get it coordinates relative to the form and than recalculate them for the editbox.
lcPoint = REPLICATE(CHR(0), 8)
GetCaretPos(@lcPoint)
SET PROCEDURE TO clsHeap
? LongToNum(LEFT(lcPoint,4))
? LongToNum(Right(lcPoint,4))
I used clsHeap class from download section to convert Long values returned by the function.

>Hi All,
>
>Is are anyway I can return the nXCoord & nYCoord of the cursor position (SelStart) in a editbox throught InteractiveChange
>
>
>Thanks in advance
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform