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--