property OnHitTest: THitTestEvent;

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


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

Using Layers, TCustomImage32