TrvActionInsertPicture.OnInserting

<< Click to display table of contents >>

TrvActionInsertPicture.OnInserting

Occurs before inserting image in the target editor.

type
  TRVAInsertPictureEvent = procedure(Sender: TObject;
    Editor: TCustomRichViewEdit; var Graphic: TGraphic;

    const FileName: TRVUnicodeString)
    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)