Skip to main content

TdxBarCustomButton.CloseSubMenuOnClick Property

Determines whether a submenu closes when pressing this button.

Declaration

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