Skip to main content

TcxCustomTabControlProperties.CloseTabWithMiddleClick Property

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

Declaration

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