Table of Contents

TTMSFNCDataGridMouseInfo Record

Mouse event data passed by reference to TTMSFNCDataGridCell.HandleMouse.

API unit family: TMSFNCDataGridCell

Syntax

TTMSFNCDataGridMouseInfo = record

Remarks

Set Blocked to True to suppress the default grid mouse handling after cell processing. Set Cursor to the desired cursor shape; the grid applies it after HandleMouse returns. Use DefaultMouseInfo to obtain an instance pre-filled with X/Y=-1 and Kind=gmkNone.

Fields and properties

Name Type Description
Blocked Boolean Set to True to prevent the grid from performing its default mouse action after HandleMouse returns.
Button TMouseButton The mouse button involved in the event (left, right, or middle).
Cursor TCursor Output: set to the desired cursor shape inside HandleMouse; the grid applies the change after the call.
Handled Boolean Set to True inside HandleMouse to mark the event as fully consumed.
Kind TTMSFNCDataGridMouseKind Phase of the mouse event (down, move, up, wheel, enter, leave, double-click, drag).
Shift TShiftState Modifier keys (Shift, Ctrl, Alt) active at the time of the mouse event.
WheelDelta Integer Scroll-wheel delta in notches; positive = scroll up, negative = scroll down.
X Single X: horizontal position relative to the cell's left edge; Y: vertical position relative to the cell's top edge.
Y Single X: horizontal position relative to the cell's left edge; Y: vertical position relative to the cell's top edge.