OnHitTest

Graphics32

TCustomLayer.OnHitTest

property OnHitTest: THitTestEvent;

type THitTestEvent = procedure(Sender: TObject; X, Y: Integer; var Passed: Boolean) of object;

Description

Provide a handler for this event to customize the mouse hit testing. The X and Y parameters indicate the mouse position relative to TCustomImage32 (or its descendant) top-left corner.

See Also

TCustomImage32, Using Layers