trichview.support
Re: Insering Control, Saveing Document! |
Author |
Message |
Mamouri |
Posted: 04/28/2003 12:09:32 Now I read following line in RichView Help: >In order to load these items from RVF, you need to register a class of the control. >For example: >Delphi: RegisterClass(TButton); But It dont help me, too! Document still loaded without controls! Regards "Mamouri" <Mamouri@ganjafzar.com> wrote: > >Hi! >I use following code for inserting control: > >var > btn: TButton; >begin > btn := TButton.Create(Self); > RichViewEdit1.InsertControl('afsdafs', btn, rvvaMiddle); > RichViewEdit1.Format; > >and then using following code I save document: > > RichViewEdit1.SaveRVF('C:\1.rvf', False); > >and using following code I try to load doucment: > RichViewEdit1.LoadRVF('C:\1.rvf'); > RichViewEdit1.Format; > >But Document loaded without controls. >Then I tried following code in OnRVFControlNeeded: > > RichViewEdit1.InsertControl(Name, ctrl, rvvaMiddle); > RichViewEdit1.Format; > >But The document still loaded without controls! > >Am I wrong? |
Powered by ABC Amber Outlook Express Converter