I did find a way to get this to work, but it's not what I would call
ideal.  I need to do the following:

this.treeitem.subviews[2].setAttribute("fontstyle", "bold");

Is there a more direct way to access the view which displays the text of
the tree?

Thanks!

On Thu, 21 Sep 2006 16:36:07 -0400, "James Howe"
<[EMAIL PROTECTED]> said:
> [...]
> 
> This code works just fine.  Now I'm trying to use a tree instead of a
> list/textlist item.  I've got the code working where it is attempting to
> set the fontstyle to either bold or plain, but the visual result is
> always plain.  Initially I just tried doing this:
> 
> this.setAttribute("fontstyle", "bold")
> 
> where 'this' is an instance of 'tree'.  I then inspected the tree object
> and found that it holds on to a treeitem.  So then I tried:
> 
> this.treeitem.setAttribute("fontstyle", "bold");
> 
> Again, no luck.
>
> [...]
-- 
  James Howe
  [EMAIL PROTECTED]


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to