HeaderPane
Main
Hide
Share Link
Print

BackColorActive Property, SftTabsTab Object

Defines the tab's background color (used when the tab is the current tab).

Syntax

Get

VBClr = object.BackColorActive As OLE_COLOR

Put

VBobject.BackColorActive = Clr As OLE_COLOR

object

A SftTabsTab object.

Clr

Defines the tab's background color (used when the tab is the current tab). Use -1 to restore the default color.

Comments

The BackColorActive property defines the tab's background color (used when the tab is the current tab).

If this property defines a tab background color (other than the default background color BackColorActive), it overrides the background bitmap (BackgroundInside) and the tab uses the specified background color when active. If defined, the Tab.BackColorActiveStart and Tab.BackColorActiveEnd properties override the BackColorActive property.

If the tab control uses Windows themes, the BackColorActive property has no effect.

Examples

VB6 View entire sample code

        ' add the tab
        iTab = .Tabs.Add(frmD.Caption)
        ' define colors
        .Tab(iTab).BackColorStart = &HFEECDD
        .Tab(iTab).BackColorEnd = &HE2A981
        .Tab(iTab).BackColor = &HE2A981
        .Tab(iTab).BackColorActiveStart = &HFEECDD
        .Tab(iTab).BackColorActiveEnd = &HE2A981
        .Tab(iTab).BackColorActive = &HE2A981
        ' define a close button for the tab
        .Tab(iTab).CloseButton = True
        ' define a tooltip for the tab
        .Tab(iTab).ToolTip = "This tab activates the form named " & frmD.Caption
        ' and save a reference to the MDI child form object that this
        ' tab represents
        .Tab(iTab).Tag1 = frmD

See Also SftTabsTab Object | Object Hierarchy


Last Updated 11/19/2026 - (email)
© 2026 Softel vdm, Inc.