Sign in Join
FPDoc Onlineexperiment

TToolBar.FindButtonFromAccel function

Member of TToolBarprotectedIn unit ComCtrls

Gets the tool bar button with the specified accelerator key.

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.