Search found 4 matches

by enzogupi
Wed Jan 13, 2010 12:34 pm
Forum: Support
Topic: How to avoid unnecessary repaints?
Replies: 2
Views: 7255

Sergey Tkachenko wrote:rve.BeginUpdate...rve.EndUpdate
It works... thanks
by enzogupi
Wed Jan 13, 2010 12:34 pm
Forum: Support
Topic: How to avoid scroll on SetSelectionBounds?
Replies: 2
Views: 7272

Sergey 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;
It works... thanks
by enzogupi
Mon Jan 11, 2010 8:54 am
Forum: Support
Topic: How to avoid scroll on SetSelectionBounds?
Replies: 2
Views: 7272

How to avoid scroll on SetSelectionBounds?

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?
by enzogupi
Mon Jan 11, 2010 8:51 am
Forum: Support
Topic: How to avoid unnecessary repaints?
Replies: 2
Views: 7255

How to avoid unnecessary repaints?

Is there a way to programmatically enable/disable refreshing?
I need to do some sequential operations like SetSelection
and ApplySelectionStyle and I wish only a single repaint at the end.