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

TcxCustomTabControlProperties.CloseTabWithMiddleClick Property

Specifies if clicking the middle mouse button closes the tab located under the mouse pointer.

#Declaration

Delphi
property CloseTabWithMiddleClick: Boolean read; write; default False;

#Property Value

Type Default
Boolean False

#Remarks

Set this property to True to let end-users click the middle mouse button (or the mouse wheel if it is clickable and acts as a middle button) in order to close the tab located under the mouse pointer. This behavior mimics tab management in modern web browsers.

You can handle the OnCanCloseEx or OnCanClose event to prohibit closing of individual tabs or only the currently selected tab, respectively.

Use the CloseTabWithMiddleClick property as an option to close tabs.

The default value of the CloseTabWithMiddleClick property is False.

See Also