TTMSFNCDataGridRadioButtonCell.HandleKey Method
Processes a key event for the cell. The base implementation does nothing; descendants override it to react to keys.
API unit family: TMSFNCDataGridCell
Declaring type: TTMSFNCDataGridRadioButtonCell
Inherited from: TTMSFNCDataGridCell
Overloads
Overload 1
Processes a key event for the cell. The base implementation does nothing; descendants override it to react to keys.
procedure HandleKey(var AKeyInfo: TTMSFNCDataGridKeyInfo); virtual;
virtual void __fastcall HandleKey(TTMSFNCDataGridKeyInfo &AKeyInfo);
Remarks
The grid forwards the Space key of the focused cell, which the check-box and radio-button cells use to toggle their state.
Parameters
| Name | Description |
|---|---|
AKeyInfo |
Key event data; see TTMSFNCDataGridKeyInfo for the fields a handler can change. |
Overload 2
Selects the radio button when the Space key is released, repaints, and raises TTMSFNCDataGridCheckedCell.OnChange.
procedure HandleKey(var AKeyInfo: TTMSFNCDataGridKeyInfo); override;
virtual void __fastcall HandleKey(TTMSFNCDataGridKeyInfo &AKeyInfo);
Remarks
Nothing happens when the radio button is disabled or already selected.
Parameters
| Name | Description |
|---|---|
AKeyInfo |
Key event data; only a gkkUp event for the Space key is handled. |