Skip to main content
Table of Contents

TTMSFNCDataGridNodeCell.HandleMouse Method

Processes a mouse event for the cell: clicks on the filter button, the comment indicator, and a cached control, and switching a cached control to its live version while the mouse hovers over it.

API unit family: TMSFNCDataGridCell Declaring type: TTMSFNCDataGridNodeCell Inherited from: TTMSFNCDataGridCell

Overloads

Overload 1

Processes a mouse event for the cell: clicks on the filter button, the comment indicator, and a cached control, and switching a cached control to its live version while the mouse hovers over it.

FMX.TMSFNCDataGridCell.hppPascalC++
procedure HandleMouse(var AMouseInfo: TTMSFNCDataGridMouseInfo); virtual;
virtual void __fastcall HandleMouse(TTMSFNCDataGridMouseInfo &AMouseInfo);

Remarks

Nothing happens when Blocked is already True. A press and release on the filter button or the comment indicator raise the corresponding grid events; a press and release (or a double-click) on a cached control run its click behaviour, for example toggling a check box.

Override in a custom cell to add hit areas; call inherited first and skip your own handling when Blocked is True.

Parameters

Name Description
AMouseInfo Mouse event data. The base implementation sets Blocked when it handles the event and sets Cursor over the comment indicator.

Overload 2

Handles the base cell mouse behaviour and clicks on the expand/collapse icon.

FMX.TMSFNCDataGridCell.hppPascalC++
procedure HandleMouse(var AMouseInfo: TTMSFNCDataGridMouseInfo); override;
virtual void __fastcall HandleMouse(TTMSFNCDataGridMouseInfo &AMouseInfo);

Remarks

A press followed by a release on NodeRect raises OnExpand when State is collapsed, or OnCollapse when it is expanded. The cell does not change State itself; the grid expands or collapses the row and repaints.

Parameters

Name Description
AMouseInfo Mouse event data. Blocked is set while a press that started on the icon is in progress.