ImageEn, unit imageenview |
|
TImageEnView.OnPointerEx
Declaration
property OnPointerEx: TIEPointerExEvent;
Description
Occurs when a pointer interacts with the control.
Note: Pointer support requires Delphi 10.3 Rio or newer
OnPointer vs OnPointerEx
Use
OnPointer for a simplified version of
OnPointerEx.
OnPointerEx provides a lot more detail about the pointer via the
Info property, including pen rotation and tilt data.
Also, for iepeMove and iepeHover,
OnPointer is called only when a change in position or pressure has occured, but
OnPointerEx is called with every update.
| Demos\Other\PointerEvent\PointerEvent.dpr |
procedure TMainForm.ImageEnView1Pointer(Sender: TObject; Event: TIEPointerEventType; Button: TMouseButton; Shift: TShiftState; X, Y: Integer; Pressure: Integer);
begin
Caption := format( 'Pos: %d, %d - Pressure: %d', [ X, Y, Pressure ]);
end;
See Also
◼OnPointer
◼PointerDeviceCount
◼PenEffects