ImageEn, unit imageenview

TImageEnView.OnPointer

TImageEnView.OnPointer


Declaration

property OnPointer: TIEPointerEvent;


Description

Occurs when a pointer interacts with the control.

Note: Pointer support requires Delphi 10.3 Rio or newer


OnPointer vs OnPointerEx

OnPointer is 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.


Demo

Demo  Demos\Other\PointerEvent\PointerEvent.dpr


Example

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

- OnPointerEx
- PointerDeviceCount
- PenEffects