I have a TScrollBox
that has a RichEdit that is bigger than the scrollbox, so both side scrollbars appear in the scrollbox. Then I have a function DoTask
that calls RichEdit.SetFocus
.
When I scroll down to where I want to see part of the text control, and then call DoTask
, the ScrollBox will automatically scroll to the top of the RichEdit. How can I avoid that?