Page 1 of 1

Control texteditor cursor position

Posted: Fri Mar 27, 2020 12:25 am
by tolkien
Hello!

I'm doing a little program to learn about gui code but I really need it.
I have two texteditors in the same window with the same text.
I want that if i move the cursor in one of the texteditor the other scroll to the same position.
Is it possible?

Thanks mates.

Re: Control texteditor cursor position

Posted: Fri Mar 27, 2020 3:34 pm
by root

Re: Control texteditor cursor position

Posted: Fri Mar 27, 2020 6:43 pm
by tolkien
Tried that last night but seems I'm doing something wrong. Would try this evening.
Thanks!!

Re: Control texteditor cursor position

Posted: Sun Mar 29, 2020 2:02 pm
by tolkien
Yes. CursorPos was the solution. I was doing something stupid in the middle. I need to sleep sometimes.
Thanks!