PDA

View Full Version : tree component : word wrap/multiline ?


chartrandi
02-22-2004, 04:44 PM
I read somewhere that it's possible to make a tree "label" multiline, (to make it word wrap)

I'm loading data from a xml file.

sometimes my labels are 2 and evern 3 rows long!
how can I make the node wrap?

thanks

Supa-T
06-01-2004, 05:27 PM
chartrandi, did you ever find a way to do this? i've tried making a custom cell renderer, but I've had no luck.

any help would be appreciated. i must make my tree nodes wrap.

thanks

chartrandi
06-02-2004, 08:07 AM
unfortunately no, I ended up going with a javascript version (too bad!)

on Macromedia Exchange you can buy a tree that wraps, xmlNavigator...40$us I think. (xml/flash), pretty easy to use or so it seems (haven't tried it)

the demos aren't very nice but the tree is fully custumizable. ciao and good luck!

twoei22
02-10-2005, 03:09 AM
Wanna know if anyone finds out how to do this.

red penguin
04-05-2005, 07:44 PM
In Help, look for:
Using the CellRenderer API

There is an example of a CellRenderer.as which is multiline
the line in particular is:

// c is the Label
c.multiline = true;