Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomButton.OnDropDownMenuPopup Event

In This Article

Occurs when the button’s dropdown menu is about to be displayed on screen.

#Declaration

Delphi
property OnDropDownMenuPopup: TcxButtonDropDownMenuPopupEvent read; write;

#Remarks

This event is deprecated, and is retained for backward compatibility only. Handle the button’s OnDropDownMenuPopupEx event instead.

The OnDropDownMenuPopup event is fired after the OnDropDownMenuPopupEx event and only if the following conditions are met:

Handling the OnDropDownMenuPopup event is useful, for instance, if you want to handle the dropdown menu appearance in a custom way or designate the popup menu to be displayed at run time. The APopupMenu parameter specifies the popup menu object that will be displayed. By default, it refers to the TPopupMenu instance set to the DropDownMenu property. When the DropDownMenu property is not set, the APopupMenu parameter value is nil (Delphi) or NULL (C++).

Set the AHandled parameter to True (the default value is False) and the dropdown menu will not be displayed automatically.

See Also