[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'ComCtrls' (#lcl)

TToolButton.DialogChar

Clicks the button when the message contains the accelerator key for the button control.

Declaration

Source position: comctrls.pp line 2160

protected function TToolButton.DialogChar(

  var Message: TLMKey

):Boolean; override;

Function result

True If the message was handled as an accelerator key for the tool bar button.

Description

Causes the tool button to be clicked when Message contains the accelerator key (shortcut) in the Caption for the button. ShowCaptions must be enabled in the Parent tool bar to allow the button to be clicked. If the message is not handled in the method, the inherited method is called.

The return value is True if the key message was handled as an accelerator key for the button control.

See also

TControl.DialogChar

  

Performs actions needed to handle an accelerator key for the control.


Version 3.2 Generated 2024-02-25 Home