PDFium Delphi Component Docs

συμβάν OnMouseDown

Component: TPdfView  ·  Unit: PDFium
Ενεργοποιείται όταν the user presses a mouse button over the view.

Syntax

property OnMouseDown: TMouseEvent;

Description

Ενεργοποιείται όταν the user presses a mouse button over the view. Η παράμετρος Sender αναφέρεται στην περίσταση TPdfView που προκάλεσε το συμβάν, ώστε ένας μόνο χειριστής να εξυπηρετεί πολλαπλές προβολές ελέγχοντας το Sender.

Typical uses include: begin a custom selection box, start panning, or capture coordinates for a "go to this annotation" feature. Επειδή ο χειριστής εκτελείται στο κύριο νήμα VCL, μπορείτε να ενημερώσετε controls φόρμας και να καλέσετε άλλα VCL APIs άμεσα.

Οι χειριστές πρέπει να επιστρέφουν γρήγορα — PDFium rendering and form filling occur on the same thread, and any delay here postpones the next page repaint.

Remarks

Example

procedure TForm1.PdfViewOnMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  // begin a custom selection box, start panning, or capture coordinates for a "go to this annotation" feature
  Caption := Format('OnMouseDown on page %d', [PdfView1.PageNumber]);
end;

See Also

OnClick, OnPageChange, PageNumber