desktop. I am having a problem with TextArea’s SelectionStart being moved after it’s set in code on R3. I have a custom event handler called OnPaste which sets a Boolean which blocks funny things like moving the insertion point.
I know it goes into and out of, by code, TextChanged, because of the boolean.
I also have a small project which uses the event and it doesn’t happen there.
And the SelectionStart set by code works ok. Moves the cursor 5 character before the end of the pasted text. Something else in your code is moving it to the beginning.
Thank you. You are quite correct in that is not simple. If it is simple the bug doesn’t appear.
When I looked at SelectionStart in the debugger before the paste I get eg. 200
After that I add to 200 the length of the text, and the debugger reports what it should be at the VERY end of the event. It doesn’t go anywhere unusual after that including places where SelectionStart is reset to 0.