how to use GroupBox and Tree

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

silentyears
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Sep 11, 2013 11:17

how to use GroupBox and Tree

Postby silentyears » Fri Oct 25, 2013 09:56

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!

silentyears
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Sep 11, 2013 11:17

Re: how to use GroupBox and Tree

Postby silentyears » Sat Oct 26, 2013 01:12

By the way, CEGUI version is 0.7.9.
Thanks!


Return to “Help”

Who is online

Users browsing this forum: Bing [Bot] and 4 guests