TCustomCheckBox.DialogChar function
Implements support for accelerator keys in the control.
Declaration
function DialogChar(var Message: TLMKey): Boolean; overrideArguments
Message | Control message examined in the method. |
Function result
True when the control state is toggled by the accelerator key.Description
DialogChar is an overridden
Boolean function in
TCustomCheckBox which handles accelerator keys in messages for the
control. The return value is set to
True when the check box is
successfully toggled in the method.
Message is the TLMKey instance with the key code examined in the
method. When the key code matches the accelerator key in
Caption,
the control is focused and its
State is toggled. If the control
cannot be focused, or Message does not represent an accelerator key code, the
inherited method is called to get the return value.
This method is called even if the control is disabled or hidden. Provided for Delphi VCL compatibility.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
