Page 1 of 1

how to use GroupBox and Tree

Posted: Fri Oct 25, 2013 09:56
by silentyears
As subject, i want to know how to use GroupBox and Tree ,is there any code for example?
Here is my way, first I notice there is no Type "WindowLook/Group" or "Window/Tree" in the WindowLook theme ,so i think i can't write .layout file for create the control.Instead i use this code as follows

Code: Select all

GroupBox*  radioBox = static_cast<GroupBox*>( winManager.createWindow( "GroupBox", "MyGB" ) ) ;
// or
Tree* tree= static_cast<Tree *>( winManager.createWindow( "Tree ", "MyTree" ) ) ;

But it occur error. Why?
In short, i want to use GroupBox and Tree with WindowLook.
Thanks!

Re: how to use GroupBox and Tree

Posted: Sat Oct 26, 2013 01:12
by silentyears
By the way, CEGUI version is 0.7.9.
Thanks!