Declaration ​
pascal
type
THitTestEvent = procedure(Sender: TObject; X, Y: Integer; var Passed: Boolean) of object;
property OnHitTest: THitTestEvent read ... write ...;Parameters ​
| Parameter | Type | Description |
|---|---|---|
Sender | TObject | The layer instance being tested. |
X, Y | Integer | Viewport pixel coordinates. |
Passed | Boolean | Passed in/out boolean flag indicating whether the point hits the layer. |
Description ​
OnHitTest allows custom hit-testing logic for the layer.