Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.Direct Property

Returns an ISftTabsVTable interface pointer.

Syntax

Get
VBSet refSftTabsVObj = object.Direct As SftTabsVTable

object

A SftTabs object.

refSftTabsVObj

Returns an ISftTabsVTable interface pointer.

Comments

The Direct property returns an ISftTabsVTable interface pointer.

The ISftTabsVTable interface describes a SftTabs object (i.e. the control itself). It is used in Visual Basic to insure that vtable binding is used. Visual Basic uses dispatch interface (early and late) binding when a SftTabs object is used (i.e. the control). By retrieving the ISftTabsVTable interface, Visual Basic can use vtable binding which is significantly faster than any form of dispatch interface binding.

Any SftTabs/OCX control that is used with Visual Basic should use the ISftTabsVTable interface if performance is important. Visual Basic uses vtable binding for all other SftTabs objects (such as SftTabsTab, etc.). Visual Basic will however use dispatch interface binding for the control object (SftTabs).

The ISftTabsVTable interface exposes all properties and methods that are supported by the SftTabs object.

Example

Private Sub Form_Load()
    Dim I As Integer
    With SftTabs1.Direct
        .BulkUpdate = True
        .Scrolling.Style = scrollSftTabsAlwaysRight
        With .Tabs
            For I = 0 To 20
                .Add "Tab " & I
            Next
        End With
        .BulkUpdate = False
    End With
End Sub

See Also SftTabs Object | Object Hierarchy


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