RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar.TrackMenu Method

Called when the accelerator for a toolbar button is pressed.

Pascal
function TrackMenu(Button: TToolButton): Boolean; dynamic;
C++
__fastcall Boolean TrackMenu(TToolButton Button);

TrackMenu is called automatically in response to the accelerator on a toolbar button. It initializes the menu of a drop-down menu button, and forwards a click to the underlying Windows control. 

Button is the toolbar button for which an accelerator was pressed. 

Override TrackMenu in a derived class to perform additional actions when the accelerator for a toolbar button is pressed. 

 

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