Vcl.ComCtrls.TToolButton.DropdownMenu
Delphi
property DropdownMenu: TPopupMenu read FDropdownMenu write SetDropdownMenu;
C++
__property Vcl::Menus::TPopupMenu* DropdownMenu = {read=FDropdownMenu, write=SetDropdownMenu};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TToolButton |
Description
Identifies a pop-up menu associated with the tool button.
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.