RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar.FindButtonFromAccel Method

Returns the toolbar button with the specified accelerator.

Pascal
function FindButtonFromAccel(Accel: Word): TToolButton;
C++
__fastcall TToolButton FindButtonFromAccel(Word Accel);

Use FindButtonFromAccel to determine which toolbar button has the specified accelerator. 

If the accelerator is not found, FindButtonFromAccel returns nil (Delphi) or NULL (C++). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!