RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TToolButton.DropdownMenu Property

Identifies a pop-up menu associated with the tool button.

Pascal
property DropdownMenu: TPopupMenu;
C++
__property TPopupMenu DropdownMenu;

Assign a value to DropdownMenu to make a menu appear when the button is pressed. (To display the menu programmatically, call the tool button's Click method.) If the menu's AutoPopup property is set to true, the menu appears automatically. If AutoPopup is false, display the menu by calling the menu's Popup method in the tool button's OnClick event handler. 

When associating a drop-down menu with the tool button, set the Style to tbsDropDown. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!