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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…