PDFiumVCL Docs

OnMouseUp event

Dieser API-Eintrag behält Bezeichner, Signaturen, Codeblöcke und PDF-Begriffe in ihrer Originalform.
Component: TPdfView  ·  Unit: PDFium
Fired when the user releases a mouse button.

Syntax

property OnMouseUp: TMouseEvent;

Description

Fired when the user releases a mouse button. The Sender parameter references the TPdfView instance that raised the event, so a single handler can serve multiple views by inspecting Sender.

Typical uses include: commit a custom selection, finish a pan gesture, or trigger a click-to-zoom action. Because the handler runs on the VCL main thread, you can update form controls and call other VCL APIs directly.

Handlers must return quickly — PDFium rendering and form filling occur on the same thread, and any delay here postpones the next page repaint.

Remarks

Example

procedure TForm1.PdfViewOnMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  // commit a custom selection, finish a pan gesture, or trigger a click-to-zoom action
  Caption := Format('OnMouseUp on page %d', [PdfView1.PageNumber]);
end;

See Also

OnClick, OnPageChange, OnMouseDown, PageNumber