HeaderPane
Main
Hide
Share Link
Print

Buttons

A SftTabs/NET control can show a Close, a Minimize and a Restore button at the end of the tab row. The SftTabs.Buttons property returns the control's ButtonsClass object, which defines these buttons.

Buttons

Each button is shown using its own property: ButtonsClass.CloseButton, ButtonsClass.MinimizeButton and ButtonsClass.RestoreButton. The buttons are displayed while the control shows a single row of tabs.

The control does not perform an action when a button is clicked. Clicking a button raises the CloseButtonClicked, MinimizeButtonClicked or RestoreButtonClicked event and the application performs the action, for example removing the selected tab, or collapsing the control to its row of tabs and expanding it again.

A button can be disabled (ButtonsClass.CloseButtonEnabled, ButtonsClass.MinimizeButtonEnabled and ButtonsClass.RestoreButtonEnabled properties), can show an application-defined image in place of the built-in image (ButtonsClass.CloseButtonImage, ButtonsClass.MinimizeButtonImage and ButtonsClass.RestoreButtonImage properties) and can have a tooltip (ButtonsClass.CloseButtonToolTip, ButtonsClass.MinimizeButtonToolTip and ButtonsClass.RestoreButtonToolTip properties).

The ButtonsClass.Alignment and ButtonsClass.FullSize properties define the alignment and the size of the buttons across the tab row, the ButtonsClass.Appearance property their appearance. The ButtonsClass.Gap property defines the gap between the buttons, and the ButtonsClass.ScrollButtonsGap property the gap between these buttons and scroll buttons shown next to them.

Tabs can also have their own close button, see Tab Close Buttons.

See Also Tab Control Components