Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.ClientArea Property

Defines whether the control provides a client area for tab pages.

Syntax

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

object

A SftTabs object.

Boolean

Defines whether the control provides a client area for tab pages.

BooleanDescription
TrueA client area is available.
FalseA client area is not available.

Comments

The ClientArea property defines whether the control provides a client area for tab pages.

A tab control can optionally contain a client area. The client area is used to display controls associated with a tab.

Certain tab styles (see Style) do not support a client area. The Attributes property page can be used to determine if a tab style supports a client area.

The client area cannot be removed if any of the tabs have associated controls.

If a client area is available, controls can be added to the tab control at design-time. As the user switches between tabs, the controls associated with each tab are shown or hidden. As controls are hidden because their associated tab is not the current tab, the controls are not only hidden, but also disabled (using Visual Basic's Enabled property). This is fully automatic and requires no application intervention.

The tab order of the controls contained within the client area (or current tab page) is defined using Visual Basic's TabIndex property.

Example

Private Sub Form_Load()
    With SftTabs1
        .ClientArea = False
        .MakeNaturalSize
    End With
End Sub

See Also SftTabs Object | Object Hierarchy


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