Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.UseClientAreaColors Property

Defines whether the client area colors defined for tabs are used for frames.

Syntax

Put
VBobject.UseClientAreaColors = Boolean As Boolean
Get
VBBoolean = object.UseClientAreaColors As Boolean

object

A SftTabs object.

Boolean

Indicates whether frames of additional rows behind the first row use the color defined using the tab's Tab.ClientAreaColor property as their background color.

BooleanDescription
TrueThe tab's defined client area color is used to fill the frame.
FalseThe control's default background color (BackColor) is used to fill the frame.

Comments

The UseClientAreaColors property defines whether the client area colors defined for tabs are used for frames.

Additional tab rows display a frame if a client area is available and the row indentation is suitably defined (Tabs.RowIndent). These frames can use the default background color defined using the control's BackColor property. If UseClientAreaColors is set to True, the first tab's ClientAreaColor property (of each row) is used to fill the corresponding frame.

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

Example

Private Sub Form_Load()
    Dim TabIndex As Integer
    With SftTabs1.Direct
        .Tabs.Clear
        TabIndex = .Tabs.Add("First Tab")
        .Tab(TabIndex).ClientAreaColor = vbRed
        TabIndex = .Tabs.Add("Second Tab")
        .Tab(TabIndex).ClientAreaColor = vbBlue
        TabIndex = .Tabs.Add("Third Tab")
        .Tab(TabIndex).ClientAreaColor = vbYellow
        TabIndex = .Tabs.Add("Fourth Tab")
        .Tab(TabIndex).ClientAreaColor = vbWhite
        .Tabs.Rows = 2
        .UseClientAreaColors = True
    End With
End Sub

See Also SftTabs Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.