Defines the appearance of the tabs.
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET
public enum TabLookEnum;
Public Enum TabLookEnum
| Name | Description |
|---|---|
| Themed | Tabs are drawn using the current Windows theme. |
| Standard | Classic three-dimensional tabs. |
| Flat | Flat tabs with a single border line. |
| Buttons | Tabs are drawn as buttons; the row holding the selected tab stays in place. |
| Underline | Tabs without borders; a bar in the accent color marks the selected tab. The row holding the selected tab stays in place. |
| Document | Flat rectangular tabs; the selected tab is filled with the accent color, which continues as a band along the pages. |
| Rounded | Flat tabs with rounded outer corners; the selected tab joins the page frame. |
| Pills | Tabs are drawn as separate capsules; the selected tab is filled with the accent color. The row holding the selected tab stays in place. |
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.
// 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();
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