Declaration ​
pascal
TImgMouseEvent = procedure(Sender: TObject; Button: TMouseButton; Shift: TShiftState;
X, Y: Integer; Layer: TCustomLayer) of object;Parameters ​
| Parameter | Type | Description |
|---|---|---|
Sender | TObject | The image control dispatching the mouse event. |
Button | TMouseButton | The mouse button that was pressed or released (mbLeft, mbRight, or mbMiddle). |
Shift | TShiftState | State of keyboard modifiers (ssShift, ssCtrl, ssAlt) and mouse buttons. |
X, Y | Integer | Coordinates of the mouse cursor relative to the control buffer. |
Layer | TCustomLayer | The layer located under the mouse cursor, or nil if no layer was hit. |
Description ​
TImgMouseEvent defines the event handler signature for layer-aware mouse button events (OnMouseDown, OnMouseUp) in TCustomImage32.