TCustomButton.DialogChar function
Handles an accelerator key for the control.
Declaration
function DialogChar(var Message: TLMKey): Boolean; overrideArguments
Message | Message examined in the method. |
Function result
True if the message was handled as an accelerator key.Description
DialogChar is an overridden
Boolean function used to
handle a
TLMKey message received for the control.
DialogChar examines the CharCode member in Message to
determine if it contains the accelerator key defined in the
Caption for the control. If it is found, and the control can
receive focus, the Click method is called and the return value is
set to True. If the Message has a CharCode that is not the accelerator
key, the inherited method is called to handle the message and get the return
value for the method.
The return value is True when the Message is successfully handled for the control.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
