TPDFlibViewerBeforeSnapshot

Events, viewer interaction

Description

Fires through OnBeforeSnapshot before a snapshot drag in vmSnapshot mode is captured

The hook may take over the region entirely: setting Handled to True cancels the default capture, so no bitmap is placed on the clipboard and OnSnapshot never fires

Declaration

TPDFlibViewerBeforeSnapshot = procedure(Sender: TObject; const Region: TRect; var Handled: Boolean) of object;

Parameters

SenderThe viewer performing the snapshot drag
RegionThe dragged rectangle in client coordinates
HandledStarts False; set to True to cancel the default capture

See also

OnBeforeSnapshot, OnSnapshot, CaptureRegion, SnapshotToClipboard, TPDFlibViewerSnapshot, ViewerMode