HeaderPane
Main
Hide
Share Link
Print

TabLookEnum Enumeration

Defines the appearance of the tabs.

Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public enum TabLookEnum;
Public Enum TabLookEnum

Values

NameDescription
ThemedTabs are drawn using the current Windows theme.
StandardClassic three-dimensional tabs.
FlatFlat tabs with a single border line.
ButtonsTabs are drawn as buttons; the row holding the selected tab stays in place.
UnderlineTabs without borders; a bar in the accent color marks the selected tab. The row holding the selected tab stays in place.
DocumentFlat rectangular tabs; the selected tab is filled with the accent color, which continues as a band along the pages.
RoundedFlat tabs with rounded outer corners; the selected tab joins the page frame.
PillsTabs are drawn as separate capsules; the selected tab is filled with the accent color. The row holding the selected tab stays in place.

Comments

Defines the appearance of the tabs.

The SftTabs.Look property uses this enumeration. Every look supports scrollable tabs and multiple tab rows. The Themed look uses the current Windows theme and falls back to the Standard look when themes are not available and to the Flat look in dark mode. The SftTabs.AccentColor property defines the color that marks the selected tab in the Underline, Document and Pills looks.

Examples

C# View entire sample code

            // tabs scroll in one row and not while they fill the row
            checkScrolling.Enabled = sftTabs1.Rows == 1 && !sftTabs1.FillComplete;
            labelRows.Enabled = numericRows.Enabled = !scrolling && !autoFlow;
            labelLayout.Enabled = comboLayout.Enabled = !scrolling;
            checkFill.Enabled = !scrolling;
            // tabs are reordered and the buttons are shown in one row only
            checkReorder.Enabled = oneRow;
            checkButtons.Enabled = oneRow;
            TabLookEnum look = sftTabs1.Look;
            buttonAccent.Enabled = look == TabLookEnum.Underline || look == TabLookEnum.Document || look == TabLookEnum.Pills;
        }

        private void comboLook_SelectedIndexChanged(object sender, EventArgs e) {
            if (loading) return;
            sftTabs1.Look = (TabLookEnum)comboLook.SelectedItem;
            UpdateOptions();

VB.NET View entire sample code

    LabelRows.Enabled = Not scrolling AndAlso Not autoFlow
    NumericRows.Enabled = LabelRows.Enabled
    LabelLayout.Enabled = Not scrolling
    ComboLayout.Enabled = Not scrolling
    CheckFill.Enabled = Not scrolling
    ' tabs are reordered and the buttons are shown in one row only
    CheckReorder.Enabled = oneRow
    CheckButtons.Enabled = oneRow
    Dim look As TabLookEnum = SftTabs1.Look
    ButtonAccent.Enabled = look = TabLookEnum.Underline OrElse look = TabLookEnum.Document OrElse look = TabLookEnum.Pills
End Sub

Private Sub ComboLook_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboLook.SelectedIndexChanged
    If loading Then Return
    SftTabs1.Look = CType(ComboLook.SelectedItem, TabLookEnum)
    UpdateOptions()

See Also Classes | SftTabs/NET 3.0