Hi all,

Having a couple of problems with the Tree component:

1. I'd like the backgrounds of the nodes to be transparent - there is some
typical artsy design junk behind the tree that needs to show through - I've
sorted the background of the tree itself, but each node has it's own
bacground MC that I can't seem to get rid of.

I've tried:
 - setting the background's _alpha to zero inside my cellRenderer's setSize
method (and inside the constructor, the setValue method, etc, etc, ...)
 - looping over the tree's row propoerty & setting the background of each to
_alpha=0
but both of these don't work too well - either there are a bunch of empty
rows that still have a background, or there is a quite noticable delay
between the nodes being drawn & the background disappearing.

In theory I *could* extend mx.controls.listclasses.SelectableRow & override
the method that draws the background with one that happily does alpha, but
that would mean re-creating a whole crapload of the classes that make up
Tree, as you have to jump down a couple of levels of inheritance to find the
class that uses SelectableRow (I'd actually written a couple of classes that
extended Tree & SelectableRow before I found this out :p)

2. Wrapping text in the nodes - well, I got the wrapping part down, but the
next node overlaps the wrapped text. Whatever I return from
getPreferredHeight() seems to make abolutely no difference, either.

Has anyone dealt with either of these issues before? or have any thoughts at
all (like should I give up & go grab a beer)?

--
 Lindsay Evans.
 Developer,
 Red Square Productions.

 [p] 8596.4000
 [f] 8596.4001
 [w] www.redsquare.com.au


---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to