rvico TRichView Reference | TRichView

TCustomRichView.OnProgress

Top  Previous  Next

Occurs on long operations

type

  TRVLongOperation = ( // defined in RVStyle unit

    rvloRTFRead, rvloRTFWrite,

    rvloRVFRead, rvloRVFWrite,

    rvloHTMLRead, rvloHTMLWrite,

    rvloTextRead, rvloTextWrite,

    rvloConvertImport, rvloConvertExport,

    rvloXMLRead, rvloXMLWrite,

    rvloDocXRead, rvloDocXWrite,

    rvloOtherRead, rvloOtherWrite

    );

  TRVProgressStage = // defined in RVStyle unit

    (rvpstgStarting, rvpstgRunning, rvpstgEnding);

type

  TRVProgressEvent = procedure (Sender: TCustomRichView;

    Operation: TRVLongOperation; Stage: TRVProgressStage;

    PercentDone: Byte) of object;

 

property OnProgress: TRVProgressEvent;

(introduced in v1.9, changed in v14)

First, it is called with parameter Stage=rvpstgStarting.

Next, it is called several times with parameter Stage=rvpstgRunning, with PercentDone in the range 0..100.

Finally, it is called with parameter Stage=rvpstgEnding.

 

This event occurs on the following operations:

reading/writing RTF;

reading/writing RVF;

writing HTML;

writing DocX;

reading/writing a plain ANSI or Unicode text;

when calling TRVOfficeConverter.ImportRV and ExportRV.

Note: the event is called if the document/source file is large enough.

See also:

TRVOfficeConverter.OnConverting


TRichView © trichview.com