SRichViewEdit Problem

General TRichView support forum. Please post your questions here
Post Reply
376408384
Posts: 20
Joined: Wed Apr 20, 2011 10:20 am

SRichViewEdit Problem

Post 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
Sergey Tkachenko
Site Admin
Posts: 17524
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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;
Post Reply