Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Image🞂TImgMouseEventType

TImgMouseEvent

Delegate type for layer-aware mouse button events in image controls.

Declaration ​

pascal
TImgMouseEvent = procedure(Sender: TObject; Button: TMouseButton; Shift: TShiftState;
  X, Y: Integer; Layer: TCustomLayer) of object;

Parameters ​

ParameterTypeDescription
SenderTObjectThe image control dispatching the mouse event.
ButtonTMouseButtonThe mouse button that was pressed or released (mbLeft, mbRight, or mbMiddle).
ShiftTShiftStateState of keyboard modifiers (ssShift, ssCtrl, ssAlt) and mouse buttons.
X, YIntegerCoordinates of the mouse cursor relative to the control buffer.
LayerTCustomLayerThe 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.

See also ​