Page 1 of 1

How to save hotspot styles and reproduce it?

Posted: Fri Jun 08, 2007 7:24 am
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

Posted: Fri Jun 08, 2007 7:23 pm
by Sergey Tkachenko
process OnRVFImageListNeeded event. It occurs when loading bullet or hotspot item from rvf. In this event, assign imagelist parameter.

Posted: Tue Jun 12, 2007 6:26 am
by uniandy
It works, thanks very much!!!