Insertion point recognition?

Hi,

In my main window I have textarea1 which contains a code snippet.
The user can double click the text area in order to open up the edit window which populates textarea2 with the same text - in order for them to edit the snippet.

Is it possible to work out where in the textarea1 they clicked, and then set the caret / insertion point to the same position in textarea2 of the edit window?

Thanks.

You can get the caret position with InserionPosAtXY

Thank you Tim - that was what I needed :slight_smile: