TCustomRichView.OnRVFImageListNeeded

<< Click to display table of contents >>

TCustomRichView.OnRVFImageListNeeded

Occurs when reading bullet, hotspot or list level with imagelist picture from RVF or XML (by TRichViewXML).

type

  TRVFImageListNeededEvent = 

    procedure(Sender: TCustomRichView

      ImageListTag: Integer; 

      var Ail: TCustomImageList) of object;

 

property OnRVFImageListNeeded: TRVFImageListNeededEvent;

If you do not process this event, TRichView is not able to read bullets, hotspots and list level with imagelist from RVF file or stream, or XML files saved by TRichViewXML if its SaveImageLists property is equal to False.

When saving these items, TRichView saves Tag of the corresponding ImageList (do not confuse with RichView items' tags, this is TCustomImageList.Tag property). This value is passed as ImageListTag parameter of this event on reading.

Assign your ImageList to Ail parameter (note: RichView does not own ImageLists, it will not destroy it).

This event is generated for each bullet, hotspot and list levels with imagelist in RVF/XML, so it is not recommended to perform time consuming calculations in this event.

 

See also:

RVF overview, contains example.