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

TdxBarCustomButton.CloseSubMenuOnClick Property

Determines whether a submenu closes when pressing this button.

#Declaration

Delphi
property CloseSubMenuOnClick: Boolean read; write; default True;

#Property Value

Type Default
Boolean True

#Remarks

If the CloseSubMenuOnClick property is set to True, the submenu behaves as designed, i.e., it closes; if the CloseSubMenuOnClick property is set to False, it remains on screen. Setting the property to False is most useful if submenu buttons function as check buttons (their ButtonStyle property is set to bsChecked or bsCheckedDropDown). In this instance, users can close a submenu by clicking the mouse button somewhere outside of it.

See Also