[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TToolButton.DropdownMenu

The drop-down menu displayed when the button is pressed.

## Declaration

Source position: comctrls.pp line 2204

`published property TToolButton.DropdownMenu : TPopupMenu read FDropdownMenu write SetDropdownMenu;`

## Description

DropdownMenu is a TPopupMenu property which contains the drop-down menu displayed for the button when its Style property is set to one of the drop-down styles:

tbsDropDown
  Displays the menu when the drop-down indicator for the button is clicked.
tbsButtonDrop
  Displays the menu when any part of the button is clicked. This style also omits the divider between the button surface and the drop-down indicator.

DropdownMenu is displayed or hidden when the TToolBar.CheckMenuDropdown method examines the flag values set when mouse messages are handled for the control.

Create a TPopupMenu instance with the menu items or sub-menus needed, and assign it to the property. Changing the value for the property causes the TPopupMenu menu instance to be added to the free notifications for the component.

## See also

TToolButton.Style |  | Determines the display style for the tool button.
TToolButton.CheckMenuDropdown |  | Checks for and executes a drop-down menu for the tool button.
TToolBar.CheckMenuDropdown |  | Determines whether the specified button has a drop-down menu item which must be checked.
TToolButtonStyle |  | Enumerated type with values representing the display styles and behaviors for buttons on a TToolBar control.
TPopupMenu |  | Implements a menu panel that pops up on the screen when the right mouse button is clicked.