TPDFlibViewerActiveRegionChange

Events, viewer interaction

Description

Fires through OnActiveRegionChange whenever the interactive region under the pointer changes

The viewer compares the freshly built region with the previous one by kind, page, index and subtype and only fires when something changed; a Kind of vrNone means the pointer left every link, annotation and form field

The current region is also available on demand through the ActiveRegion property and RegionAtClientPoint

Declaration

TPDFlibViewerActiveRegionChange = procedure(Sender: TObject; const Region: TPDFlibViewerActiveRegion) of object;

Parameters

SenderThe viewer that tracks the pointer
RegionThe new active region with kind, page, index, subtype and the pointer position in page points

See also

OnActiveRegionChange, ActiveRegion, RegionAtClientPoint, TPDFlibViewerActiveRegion, TPDFlibViewer