Tree via ItemListbox/ItemEntry

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

SongOfTheWeave
Just popping in
Just popping in
Posts: 7
Joined: Fri Jan 18, 2008 23:10

Tree via ItemListbox/ItemEntry

Postby SongOfTheWeave » Mon Jan 21, 2008 05:26

I am trying to create a tree control with the new(ish?) ItemListbox/ItemEntry style listbox implementation.

The problem that I am running into is that ItemEntry seems to ignore its height being set by any of the plethora of height setting methods or properties (Window::setHeight, Window::setProperty("UnifiedHeight") and others.)

To implement, essentially, nested ItemListboxes, I need to have variable height (i.e. not all ItemEntry instances in the ItemListbox will have the same height) and the ability to change the height of ItemEntry instances dynamically (ideally, using the AutoResize feature of ItemListbox.)

-----

I went in to working on this thinking it would be easy, the ItemLisbox/ItemEntry implementation is much more flexible than the old way, but it isn't working the way I think it should.

Am I missing the secret c0d3z or is there a limitation in the implementation that I'm running up against?

-SotW

PS - I am using TaharezLook if that is significant.

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Mon Jan 21, 2008 14:00

If you download via SVN the latest version of Cegui you'll find in the samples "TreeDemo". This could simplify your task.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 7 guests