Sign in Join
FPDoc Onlineexperiment

TRadioButton.DialogChar function

Member of TRadioButtonprotectedIn unit StdCtrls

Implements support for an accelerator key in the control.

Declaration

pascal
function DialogChar(var Message: TLMKey): Boolean; override

Arguments

Message

Message examined for the accelerator key.

Function result

True when the message is handled and the control is focused and checked.

Description

DialogChar is an overridden Boolean function in TRadioButton which handles accelerator keys in messages for the control. The return value is set to True when the radio button is successfully toggled in the method.

Message is the TLMKey instance with the key code examined in the method. If the key code matches the accelerator key in Caption, the control is focused, its Checked state is enabled, and the return value is set to True.

If the control cannot be focused, or Message does not represent the accelerator for the control, 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.