TPDFlibViewerMode

Data types, viewer interaction

Description

Enum that selects what the left mouse button does on the viewer surface

Consumed by the ViewerMode property; the tool-mode actions of PDFlibViewerActions assign and mirror the first five values, and vmSelect is the default

Declaration

TPDFlibViewerMode = (vmSelect, vmHand, vmZoom, vmSnapshot, vmHighlight, vmDrawInk, vmDrawSquare, vmDrawCircle);

Values

vmSelectDrags a text selection marquee and follows links on plain clicks, the default tool
vmHandPans the view by dragging
vmZoomDrags a marquee that zooms to fill the viewport
vmSnapshotCopies the dragged region as a bitmap to the clipboard and fires OnSnapshot
vmHighlightMarks the dragged region with a persistent translucent highlight
vmDrawInkDraws a freehand ink stroke and commits it as an ink annotation through CommitDrawnShape
vmDrawSquareDrags a rectangle and commits it as a square annotation through CommitDrawnShape
vmDrawCircleDrags a rectangle and commits it as a circle annotation inscribed in it through CommitDrawnShape

See also

ViewerMode, TPDFlibViewerSelectMode, TPDFlibViewerHandMode, TPDFlibViewerMarqueeZoomMode, TPDFlibViewerSnapshotMode, TPDFlibViewerHighlightMode, CommitDrawnShape, DrawColor, DrawLineWidth, TPDFlibViewer