How to avoid scroll on SetSelectionBounds?
Posted: Mon Jan 11, 2010 8:54 am
When I select a part of text that is partially not visible the editor scolls to bring all selection into view. Is there a way to avoid this?
Support forums for TRichView, ScaleRichView, Report Workshop and RVMedia components
https://writeally.com/forums/
Code: Select all
vp := rve.VScrollPos;
hp := rve.HScrollPos;
rve.BeginUpdate;
<select here>
rve.VScrollPos := vp;
rve.HScrollPos := hp;
rve.EndUpdate;
It works... thanksSergey Tkachenko wrote:There are no methods to disallow scrolling on selection.
You can do the following:Code: Select all
vp := rve.VScrollPos; hp := rve.HScrollPos; rve.BeginUpdate; <select here> rve.VScrollPos := vp; rve.HScrollPos := hp; rve.EndUpdate;