How to save hotspot styles and reproduce it?

General TRichView support forum. Please post your questions here
Post Reply
uniandy
Posts: 12
Joined: Thu Oct 12, 2006 4:27 am

How to save hotspot styles and reproduce it?

Post by uniandy »

Hi, Sergey -

I added hot image which showed mouse over, mouse out effect, now I save the document and reload it again, but after reloading, the images cannot be showed like before, why? Is there a method to have the hotimages saved and reloaded?

procedure TForm1.Button1Click(Sender: TObject);
begin
RichViewEdit1.InsertHotspot(0,1, ImageList1);
RichViewEdit1.SetCurrentHotspotInfo('blah blah...', 0,1, ImageList1, 1);
RichViewEdit1.InsertText('some strings',False);
end;

// Save the file with hotImages
procedure TForm1.Button2Click(Sender: TObject);
begin
RichViewEdit1.SaveRVF( 'temp.rvf', False);
end;

// Load the rvf file
procedure TForm1.Button3Click(Sender: TObject);
begin
RichViewEdit1.LoadRVF('temp.rvf');
RichViewEdit1.Format;
end;

Thanks
Andy
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

process OnRVFImageListNeeded event. It occurs when loading bullet or hotspot item from rvf. In this event, assign imagelist parameter.
uniandy
Posts: 12
Joined: Thu Oct 12, 2006 4:27 am

Post by uniandy »

It works, thanks very much!!!
Post Reply