Skip to main content
Table of Contents

TTMSFNCDataGridKeyInfo Record

Keyboard event data passed by reference to TTMSFNCDataGridCell.HandleKey.

API unit family: TMSFNCDataGridCell

Syntax

GeneratedPascalC++
TTMSFNCDataGridKeyInfo = record
struct DECLSPEC_DRECORD TTMSFNCDataGridKeyInfo

Remarks

Start from DefaultKeyInfo when building an instance yourself. The grid forwards the Space key of the focused cell to that cell's HandleKey.

Fields and properties

Name Type Description
Blocked Boolean Flag a handler can set to indicate the key was consumed; False in DefaultKeyInfo.
Handled Boolean Flag a handler can set to mark the event as consumed; False in DefaultKeyInfo.
Key Word Virtual key code of the key; a handler can set it to 0 to consume the 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.