RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolBar.InitMenu Method

Called when the menu associated with a drop-down toolbar button is about to be displayed.

Pascal
procedure InitMenu(Button: TToolButton); dynamic;
C++
__fastcall InitMenu(TToolButton Button);

InitMenu initializes the highlighting and hot-tracking for the drop-down menu associated with the tool button that Button specifies. 

Override InitMenu in a derived class to perform other initializations to the toolbar button's menu. 

 

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