Vcl.ComCtrls.TToolBar.TrackMenu
Delphi
function TrackMenu(Button: TToolButton): Boolean; dynamic;
C++
DYNAMIC bool __fastcall TrackMenu(TToolButton* Button);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolBar |
Description
Called when the accelerator for a toolbar button is pressed.
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.