AppendRVFFromStream and Controls

General TRichView support forum. Please post your questions here
Post Reply
[email protected]
Posts: 7
Joined: Wed Mar 31, 2021 8:56 pm

AppendRVFFromStream and Controls

Post by [email protected] »

I have a RichViiewEdit component on a form. If I use the the LoadRVFFromFile procedure, the controls on the document appear with no problem. However on the same component if I use the AppendRVFFromSteam procedure because I want to load several documents, the controls are not visible. They seem to be present because they will trigger the OnControlAction event and I can cycle through and see the correct count and class names.

Any ideas please ?
Sergey Tkachenko
Site Admin
Posts: 18104
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: AppendRVFFromStream and Controls

Post by Sergey Tkachenko »

Classes of all controls used in RVF must be registered before the first loading.
Such as:

Code: Select all

RegisterClasses([TButton, TEdit]);
There must be no difference between LoadRVFFromStream and AppendRVFFromStream. Internally, they call the same method for loading content.
Do not forget to call Format after loading.
Post Reply