custom control

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

antber
Just popping in
Just popping in
Posts: 1
Joined: Fri Dec 11, 2009 08:17

custom control

Postby antber » Fri Dec 11, 2009 08:34

Hi All,
I need a custom tree control, where each item of the tree is a checkbox.
How can i create it using existing functionality of tree and checkbox controls?
What is the easiest way of doing it?

Thank you.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: custom control

Postby CrazyEddie » Sat Dec 12, 2009 09:29

Hi, and welcome :)

To be frank, the existing tree is a piece of shit. You will not be able to make use of this to get the kind of functionality you're looking for. The only way to really do that is to either 'fake it' somehow (so it looks and behaves like a tree, but is really a layout composed of other content - this is probably not ideal) or create a new tree widget entirely (for which I suggest looking at the ItemListbox and menu related classes to see how they use the ItemEntry base system to allow the addition of Windows and other controls to lists and menus).

Sorry to not be of more help ;)

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests