TrvActionInsertPicture.OnInserting

Top  Previous  Next

Occurs before inserting image in the target editor.

type
  TRVAInsertPictureEvent = procedure(Sender: TObject;
    Editor: TCustomRichViewEdit; var Graphic: TGraphic; const FileName: String)
    of object;
property OnInserting: TRVAInsertPictureEvent;

Parameters

Graphic – picture that will be inserted in Editor.

FileName – name of file, from where Graphic was read.

You can:

modify the content of Graphic, or

free Graphic and assign a new graphic object to it, or

free Graphic and assign nil to it (to prevent insertion)


RichViewActions © trichview.com