Page 1 of 1

RichViewEdit.LoadRTF will not show text

Posted: Fri Dec 25, 2015 11:32 am
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 ?

Posted: Fri Dec 25, 2015 11:45 am
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;