TPDFlibViewerPageMouseButtonEvent

Events, viewer interaction

Description

Host-facing mouse-down and mouse-up notification expressed in page coordinatesWired to

OnPageMouseDown and OnPageMouseUp; the coordinates are top-down PDF page points, so they stay independent of zoom, scrolling and view rotation

Declaration

TPDFlibViewerPageMouseButtonEvent = procedure(Sender: TObject; APage: Integer; XPt, YPt: Double; Button: TMouseButton; Shift: TShiftState) of object;

Parameters

SenderThe viewer receiving the mouse event
APageOne-based page under the cursor
XPt, YPtTop-down position on that page in PDF points
ButtonThe mouse button involved
ShiftThe keyboard shift state at event time

See also

OnPageMouseDown, OnPageMouseUp, OnPageMouseMove, ClientPointToPage, TPDFlibViewerPageMouseMoveEvent, TPDFlibViewer