Jump to content

GUICtrlCreateTab inside a GUICtrlCreateTab = not working?


DarkBoost
 Share

Recommended Posts

Can I have tabs within tabs?

The example below simply adds the new tabs to the existing tabs rather than starts its own.

#include <GUIConstantsEx.au3>

Dim $w = 600
Dim $h = 600

GUICreate("", $w, $h)

GUICtrlCreateTab(10, 10, $w-20, $h-20)
    GUICtrlCreateTabItem("Question 1")
    GUICtrlCreateTabItem("Question 2")

    ; create new tab series in question 2
        GUICtrlCreateTab(30, 30, $w-60, $h-60)
            GUICtrlCreateTabItem("Boys")
            GUICtrlCreateTabItem("Girls")
        GUICtrlCreateTabItem("")
    ; end of tab

GUICtrlCreateTabItem("")

GUISetState()

While 1
    Dim $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...