Assigning a Menu to a Tool Button

From RAD Studio
Jump to: navigation, search

Go Up to Responding to Clicks

If you are using a toolbar (TToolBar) with tool buttons (TToolButton), you can associate menu with a specific button:

To assign a menu to a tool button

  1. Select the tool button.
  2. In the Object Inspector, assign a pop-up menu (TPopupMenu) to the tool button's DropDownMenu property.

If the menu's AutoPopup property is set to True, it will appear automatically when the button is pressed.

See Also