RichViewEdit.LoadRTF will not show text

General TRichView support forum. Please post your questions here
Post Reply
nikkel1
Posts: 7
Joined: Thu Dec 24, 2015 8:55 am

RichViewEdit.LoadRTF will not show text

Post by nikkel1 »

I create multiple RichViewEdit at runtime.
i can edit text but
when i use RichViewEdit.LoadRTF(...), the loaded text
is seen only after i type 1 letter in the edit window.

any idea whats missing ?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Call RichViewEdit.Format after LoadRTF.
Please note that LoadRTF appends RTF to the end of the existing content.

So the full code for loading is:

Code: Select all

RichViewEdit.Clear;
RichViewEdit.LoadRTF(...);
RichViewEdit.Format;
Post Reply