SSTab and children of each tab

SSTab hides / shows child controls by moving them to / from a negative value. Basically, all child controls have an SSTab control instance as the parent HWND.

Is it possible to determine the index of tabs for child controls - other than looping over the SSTab.Tab property? How does an SSTab instance manage child controls to merge tabs?

+3
source share
2 answers

Not what I saw. It’s best to move each tab control to a selected frame or frame. This allows you to tell what the parent of the control is, and eventually move away from the SSTab control buggy.

, , SSTab: http://hashvb.earlsoft.co.uk/Tabbed_dialogs

+1

sstab , -75000. , , , left .

, , .

Private Sub SSTab1_Click(PreviousTab As Integer)

    Dim o As Object

    For Each o In Me.Controls
        If TypeOf o.Container Is SSTab Then
            If o.Left < -40000 Then
                'control is not on the current tab
                o.Visible = False
            Else
                'control is on the current tab
                o.Visible = True
            End If
        End If
    Next

End Sub

, , click , left > 0

+1

All Articles