TTMSFNCDataGridMouseOptions Class
Options governing mouse interaction: selection, sizing, dragging, auto-scrolling, wheel scrolling, touch, and direct-edit behaviour.
API unit family: TMSFNCDataGridRenderer
Inherits from: TPersistent
Syntax
TTMSFNCDataGridMouseOptions = class(TPersistent)
Properties
| Name | Description |
|---|---|
| AutoDragging | When True, starting a drag automatically starts drag mode without requiring a prior BeginDrag call. Default is True. |
| AutoScrolling | When True, moving the mouse near the grid edge during a selection or drag automatically scrolls the grid. Default is True. |
| AutoScrollingInterval | Timer interval in milliseconds between auto-scroll steps. Default is 100 ms. |
| AutoScrollingSpeed | How many units (pixels or cells, see AutoScrollingSpeedMode) to scroll per auto-scroll timer tick. Default is 1. |
| AutoScrollingSpeedMode | Whether AutoScrollingSpeed is measured in pixels or whole cells. |
| ClickMargin | Pixel tolerance around a column/row border within which a click is considered a sizing click. Default is 2. |
| ColumnAutoSizeOnDblClick | When True, double-clicking a column border auto-sizes that column to fit its content. Default is True. |
| ColumnDragModes | Which column-drag operations are active. Default allows both reorder and visual grouping. |
| ColumnDragging | Enables dragging columns to reorder them or move them into the grouping area. Default is False. |
| ColumnSizeMargin | Pixel distance from a column border edge that activates the column-sizing cursor. Default is 6. |
| ColumnSizing | Enables resizing columns by dragging their borders. Default is False. |
| ColumnSizingMode | Controls whether column sizing moves only the dragged border or redistributes space between the two adjacent columns. |
| DirectEdit | When True, clicking a cell immediately enters edit mode without requiring an extra click or Enter key. Default is False. |
| DragMode | Controls whether row/column dragging reorders within the grid or triggers an OS drag-and-drop operation. |
| FixedCellSelection | Set of click gestures on fixed header/footer cells that select entire rows or columns. Default is empty (fixed cells do not trigger structural selection). |
| FixedColumnSizing | Enables resizing fixed columns by dragging their borders. Default is False. |
| FixedRowSizing | Enables resizing fixed rows by dragging their borders. Default is False. |
| RowAutoSizeOnDblClick | When True, double-clicking a row border auto-sizes that row to fit its content. Default is True. |
| RowDragging | Enables dragging rows to reorder them. Default is False. |
| RowSizeMargin | Pixel distance from a row border edge that activates the row-sizing cursor. Default is 6. |
| RowSizing | Enables resizing rows by dragging their borders. Default is False. |
| RowSizingMode | Controls whether row sizing moves only the dragged border or redistributes height between the two adjacent rows. |
| TouchScrolling | Enables inertial touch-scrolling on touch-capable devices. Default is False. |
| TouchScrollingSensitivity | Touch velocity damping factor. Higher values reduce scroll distance; default gives a comfortable deceleration. |
| WheelScrollKeepSelection | When True, the selection is maintained when the grid is scrolled with the mouse wheel. Default is True. |
| WheelScrollSize | Number of rows to scroll per mouse wheel notch. Default is 4. |