Game Development Community

GuiTabBook/GuiTabPage

by Robert Fritzen · in Torque Game Engine Advanced · 04/12/2011 (5:43 pm) · 1 replies

Hello, just a quick little question.

I'm trying to create multiple tabBook objects, extending within one another, but I'm noticing that the Inner "TabPage" will not display another tabBook within the tabPage.

So, basically this is what I'm trying to do:

[MAIN GUI]
   [TAB BOOK 1]
      [TAB PAGE 1]
         [SUB TAB BOOK 1]
            [SUB TAB PAGE 1]
            [SUB TAB PAGE 2]
      [TAB PAGE 2]
         [SUB TAB BOOK 2]
            [SUB TAB PAGE 1]
            [SUB TAB PAGE 2]
.
.
.
ect.

How can I go about this, or is there a different method I should be doing?

#1
04/13/2011 (6:43 am)
Just tried this myself by modifying the unused options.gui in common/gui and it seems to work fine.

This is how I've structured it:
new GuiControl(OptionsDlg)
   new GuiWindowCtrl(OptionsWindow)
      new GuiTabBookCtrl(OptionsTabBook)
         new GuiTabPageCtrl(OptionsTabPageAV)
            new GuiTabBookCtrl(OptionsTabBookAV)
               new GuiTabPageCtrl(OptionsTabPageVideo)
               new GuiTabPageCtrl(OptionsTabPageAudio)
         new GuiTabPageCtrl(ControlOptionsTabPage)
            new GuiTabBookCtrl(ControlOptionsTabBook)
               new GuiTabPageCtrl(ControlOptionsTabKeyboard)
               new GuiTabPageCtrl(ControlOptionsTabMouse)