Does anybody have an idea how to retrieve the cursor position (at least the line number) where the cursor is located within a text input control?
We'd like to insert predefined text block at the cursor position at the press of a button.

Does anybody have an idea how to retrieve the cursor position (at least the line number) where the cursor is located within a text input control?
We'd like to insert predefined text block at the cursor position at the press of a button.
I found your question curious and I believe that so far there is no way to get the coordinate/position of the cursor.
To get (something like) what you need, you would have to have another indication besides the cursor position number, this could be, for example, cursor at position X or greater than X, enter the text ABC. You can try to find a value that determines the position with the Char and Find functions.