its something i'm thinking about as well (only thinking!).

if it was flex1.5 I would have a cellRenderer that looked like this

<mx:HBox>
<mx:Image />
<mx:Label/>
</mx:HBox>
the do
<mx:Tree cellRenderer=""/>

so i'd probably do it that way in f2b2 (dont forget cellRenderer is
now called editedItemRenderer ....i think)

The reason why i'm only thinking it is because (when you have so many
different icons....its just going to get so overly rich)

regards
bod



--- In flexcoders@yahoogroups.com, Graham Weldon <[EMAIL PROTECTED]>
wrote:
>
> Hey everyone,
>
> To be honest, I've not completely read the changes since Beta2,
but
> thought I would ask:
> Has the ability to individually set icons for tree nodes been made
> available? If not, is it a feature that is planned for inclusion
with
> Flex 2.0?
> To clarify: Can I set a specific icon per item in the tree, not
based on
> whether it is a folder of item, but perhaps based on some data in
the
> dataProvider:
>
> <mx:Tree
>     labelField="theLabel"
>     iconField="theIcon">
>     ...
>     ...
>     <mx:XML>
>         <treeItem theLabel="root" theIcon="/images/rootIcon.png">
>             <treeItem theLabel="childNode"
theIcon="/images/001.png"/>
>             <treeItem theLabel="another node"
theIcon="/images/004.png">
>                 <treeItem theLabel="thing"
> theIcon="/images/thingImages/thing.png"/>
>                 <treeItem theLabel="thing"
> theIcon="/images/thingImages/thing.png"/>
>                 <treeItem theLabel="thing"
> theIcon="/images/thingImages/thing.png"/>
>                 <treeItem theLabel="thing"
> theIcon="/images/thingImages/thing.png"/>
>                 <treeItem theLabel="thing"
> theIcon="/images/thingImages/thing.png"/>
>                 <treeItem theLabel="thing"
> theIcon="/images/thingImages/thing.png"/>
>             </treeItem>
>         </treeItem>
>     </mx:XML>
>     ...
>     ...
> </mx:Tree>
>
> I hope this illustrates the effect I am trying to produce.
>
> Regards,
> Graham Weldon
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to