Page 1 of 1

SRichViewEdit Problem

Posted: Fri Sep 28, 2012 12:22 pm
by 376408384
Hello Sergey
I use SRichViewEdit with the RVStytle and compile the program.
When I input something to the SRichViewEdit in the first time ,it can not display correctly and show some messy codes~!!But after I delete anything and write someting,it will display correctly!

I send the sample and screenshots
to your E-Mail

Posted: Fri Sep 28, 2012 2:43 pm
by Sergey Tkachenko
I can reproduce this problem. It happens when you assign SRichViewEdit.ExternalRVStyle, and its TextStyles[0].Unicode has a non-default value.
It will be fixed in the next update.
As a temporal workaround, call:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  SRichViewEdit1.Clear;
  SRichViewEdit1.Format;
end;