Page 1 of 1

TabControl usage in CVS head has changed?

Posted: Thu Apr 27, 2006 19:14
by shalinor
It seems the use of this class has changed in CVS head, and I'm something at a loss for how to leverage it now?

Before, simply throwing DefaultWindows under the TabControl was enough to create buttons to switch between the windows, now, it seems to ignore all of those defaultWindows but the first one (and create buttons for none of them).


I see in the documentation for the Falagard TabControl that it wants a TabPane-based window now, so I tried changing one of my default windows to a TabPane in the hopes it might show, but nope. I also tried adding the suffix it seemed to want me to add to the window name, but still no dice.

How do I get tab controls working again?

Posted: Thu Apr 27, 2006 21:46
by shalinor
Found the problem. TabHeight became a UDim, instead of a constant value. That is, where in old code I had this:

<Property Name="TabHeight" Value="0.1" />

With the new CEGUI, it had to be this:

<Property Name="TabHeight" Value="{0.1, 0.0}" />

Simple enough, just undocumented, alas :(