It works... thanksSergey Tkachenko wrote:rve.BeginUpdate...rve.EndUpdate
Search found 4 matches
- Wed Jan 13, 2010 12:34 pm
- Forum: Support
- Topic: How to avoid unnecessary repaints?
- Replies: 2
- Views: 7247
- Wed Jan 13, 2010 12:34 pm
- Forum: Support
- Topic: How to avoid scroll on SetSelectionBounds?
- Replies: 2
- Views: 7259
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;
- Mon Jan 11, 2010 8:54 am
- Forum: Support
- Topic: How to avoid scroll on SetSelectionBounds?
- Replies: 2
- Views: 7259
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?
- Mon Jan 11, 2010 8:51 am
- Forum: Support
- Topic: How to avoid unnecessary repaints?
- Replies: 2
- Views: 7247
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.
I need to do some sequential operations like SetSelection
and ApplySelectionStyle and I wish only a single repaint at the end.