rvico TRichView Reference | TRichView

TCustomRichView.OnProgress

Top  Previous  Next

Occurs on long operations

type

  TRVLongOperation = (rvloLoading, rvloConverting);

  TRVProgressStage = (rvpstgStarting, rvpstgRunning, rvpstgEnding);

type

  TRVProgressEvent = procedure (Sender: TCustomRichView;

    Operation: TRVLongOperation; Stage: TRVProgressStage;

    PercentDone: Byte) of object;

 

property OnProgress: TRVProgressEvent;

(introduced in v1.9)

First, it is called with parameter Stage=rvpstgStarting.

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

Finally, it is called with parameter Stage=rvpstgEnding.

 

This event occurs when loading large RTF files/streams, Operation=rvloLoading.

In future, it will be called also during other long operations.

 

The component does not call this event with Operation=rvloConverting, you can use this value to call this event yourself from your handler of TRVOfficeConverter.OnConverting event.

 

Note: TRVLongOperation and TRVProgressStage types are declared in RVStyle unit.


RichView © Sergey Tkachenko