Table of Contents

TTMSFNCDataGridKeyInfo Record

Keyboard event data passed by reference to TTMSFNCDataGridCell.HandleKey.

API unit family: TMSFNCDataGridCell

Syntax

TTMSFNCDataGridKeyInfo = record

Remarks

Set Blocked to True to suppress the default grid key handling after cell processing. Set Handled to True to indicate the cell has fully consumed the event. Use DefaultKeyInfo to obtain a zero-initialised instance.

Fields and properties

Name Type Description
Blocked Boolean Set to True to prevent the grid from performing its default key action after HandleKey returns.
Handled Boolean Set to True inside HandleKey to mark the event as fully consumed.
Key Word Virtual key code of the pressed or released key.
KeyChar Char Character produced by the key press; relevant only when Kind is gkkPress.
Kind TTMSFNCDataGridKeyKind Phase of the keyboard event (down, up, press, or dialog).
Shift TShiftState Modifier keys (Shift, Ctrl, Alt) active at the time of the key event.