Forum > Packages and Libraries

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

(1/1)

AsleyCruz:
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.

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

Navigation

[0] Message Index

Go to full version