On 6/25/07, FrozenDice <[EMAIL PROTECTED]> wrote:
> Yes, I'm still using 0.6.6, but I'm stuck from upgrading because of 
> Delphi4PHP.
>
> Anyway, my question is can I change the icon of a TreeFolder depending
> on how many children it has?  I want to give TreeFolders which have
> only 1 child a different icon than others that have multiple.  Can
> this be done?

You can extend the TreeFolder class and override the method
_evalCurrentIcon().  That method currently chooses the icon depending
on whether the tree node is selected or not.  You could additionally
look at the number of children and base the icon selection on that.

Derrell

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to