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.
custom control
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: custom control
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.
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.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 8 guests