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

TToolBar.FindButtonFromAccel

Gets the tool bar button with the specified accelerator key.

Declaration

Source position: comctrls.pp line 2326

protected function TToolBar.FindButtonFromAccel(

  Accel: Word

):TToolButton;

Arguments

Accel

  

Shortcut or accelerator key to locate in the tool bar buttons.

Function result

Tool button using the specified shortcut, or Nil when not found.

Description

FindButtonFromAccel is a TToolButton function used to find the tool button with the accelerator key (virtual key code) value specified in Accel. FindButtonFromAccel visits the Visible and Enabled Buttons to find the TToolButton instance using the specified accelerator key in its caption. The return value is Nil if a tool button is not found using the specified accelerator key.

See also

TToolButton.Enabled

  

Determines whether the button can respond to click events, and how it is displayed.

TToolButton.Visible

  

Allows the control, and all of its children, to be displayed or hidden.

IsAccel

  

Determines whether the specified virtual key is used as an accelerator (short cut) in the given caption string.


Version 3.2 Generated 2024-02-25 Home