Forum > Packages and Libraries

[SOLVED] Find point relative to Win desktop from ATSynEdit caret


Hi everyone

Is there a way to get the coordinates (x, y) from a caret relative to desktop?
Remember that the window position and caret position could change at any time.
I am using ATSynEdit control.

Take a look at the attached image
Thanks a lot.

1. Use ATSynEdit method CaretPosToClientPos. You get the control-related x/y coords.
2. From control-related coords, get screen coords by ATSynEdit1.ClientToScreen.


[0] Message Index

Go to full version