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
| Sender | The viewer performing the snapshot drag |
|---|---|
| Region | The dragged rectangle in client coordinates |
| Handled | Starts False; set to True to cancel the default capture |
See also
OnBeforeSnapshot, OnSnapshot, CaptureRegion, SnapshotToClipboard, TPDFlibViewerSnapshot, ViewerMode