Hi again
Well, this is the subclass. Compiles, runs and everything but the tree
elements are not multiline...
package
{
import mx.controls.treeClasses.*;
public class TIRMultiline extends TreeItemRenderer
{
public function TIRMultiline() {
super();
}
override protected function commitProperties():void
{
super.commitProperties();
label.multiline =true;
}
}
}
Just in case...
--- In [email protected], "sergiopernas" <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I tried to find the answer to this through the list, and, though I
> found the ubercool tree renderer with lines, I can't figure out how to
> do this, though it should be easy. (beware, first real flex app,
> severe ignorance ahead!)
>
> I have a Tree component, and I want the labels to be multiline. I
> found that the TreeItemRenderer has a protected property "label", of
> class UITextField, that has a boolean "multiline", that I want to set
> to "true". I already have a subclass of the renderer, but I cannot
> find the way to change the value of the property...
>
> where in the class file should i do it? and how?
>
> (feel free to knock me in the head...)
>
> thans
>
> Sergio Pernas
> www.sysvisions.com
>