TPDFlibProgressEvent

Data types, events

Description

Receives a coarse 0 to 100 percent value during long-running operations such as text search and document rendering, allowing a host application to update a simple progress indicator

For richer per-phase reporting with cancellation, assign OnOperationProgress instead

Syntax

Delphi

TPDFlibProgressEvent = Procedure(Progress: Integer) Of Object;

Parameters

ProgressThe estimated completion percentage in the range 0 to 100

Remarks

The callback is invoked on the thread that performs the work; marshal any UI updates back to the main thread

Values are approximate and may jump or repeat; treat 100 as the only reliable completion signal

See also

OnProgress, OnOperationProgress, TPDFlibOperationProgressEvent, SetProgressCallback