I'm now pretty sure this is a strange bug in MaxGUI, or somewhere other than my code.
In this code excerpt, the error is output whenever it reaches ShowGadget.
If, however, I remove ONE of the AddGadgetItem lines (any one), it works perfectly fine. If I add another one and make the necessary tweaks to the MainTabberPanel array to accomodate it, although it does work without (but crashes later when you try to select the tab, as there's no corresponding panel), it works fine.
It works with 12. It works with 14 items. It works with 26 items. 13? Nope.
Is Mark superstitious??
MainTabber = CreateTabber(5, 55, ClientWidth(MainWindow) - 10, ClientHeight(MainWindow) - 60, MainWindow) AddGadgetItem(MainTabber, "World") AddGadgetItem(MainTabber, "Continent") AddGadgetItem(MainTabber, "Int Region") AddGadgetItem(MainTabber, "Nation") AddGadgetItem(MainTabber, "Region") AddGadgetItem(MainTabber, "City") AddGadgetItem(MainTabber, "Stadium") AddGadgetItem(MainTabber, "Club") AddGadgetItem(MainTabber, "People") AddGadgetItem(MainTabber, "Competition") AddGadgetItem(MainTabber, "League") AddGadgetItem(MainTabber, "Game") AddGadgetItem(MainTabber, "Defunct") For Local x = 0 To 12 MainTabberPanel[x] = CreateDataPanel(MainTabber) Next ShowGadget MainTabberPanel[0] MainTabberCurrent = MainTabberPanel[0]
In this code excerpt, the error is output whenever it reaches ShowGadget.
If, however, I remove ONE of the AddGadgetItem lines (any one), it works perfectly fine. If I add another one and make the necessary tweaks to the MainTabberPanel array to accomodate it, although it does work without (but crashes later when you try to select the tab, as there's no corresponding panel), it works fine.
It works with 12. It works with 14 items. It works with 26 items. 13? Nope.
Is Mark superstitious??