Page 1 of 1

Flicker

Posted: Mon Jan 13, 2014 9:35 am
by renatg
Hello. I am use this code:

SRichViewEdit1.BeginUpdate;

While SRichViewEdit1.RichViewEdit.SearchText('SearchText', [rvseoDown]) do
SRichViewEdit1.RichViewEdit.InsertText('ReplaceText', False);

SRichViewEdit1.EndUpdate;

But richViewEdit flickers. What to do?

Posted: Mon Jan 13, 2014 3:23 pm
by Sergey Tkachenko
As far as I remember, TSRichViewEdit does not have BeginUpdate and EndUpdate methods.
Use

Code: Select all

SRichViewEdit1.CanUpdate := False;
...
SRichViewEdit1.CanUpdate := True;

Posted: Tue Jan 14, 2014 5:07 am
by renatg
It worked. Thanks.