You may also want to consider the WindowShade component from FlexLib,
instead of the ComboBox:
http://flexlib.googlecode.com/svn/trunk/examples/WindowShade/WindowShade_Sample.swf

I found the kmossman example a little confusing to navigate, since
clicking on some things selected them (and collapsed the combobox), and
clicking others expanded the tree. I understand the intent of the
navigation, but it feels a little off. The windowshade may be a slicker
way to accomplish the same requirements you stated originally.


-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-----Original Message-----
From: Brad Bueche <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Be the tree, Bob
Date: Tue, 26 Feb 2008 14:33:26 -0500

Thanks for the feedback Peter and Alex!
 
I have also found these two possible solutions:
 
http://cyberdust.wordpress.com/2007/02/23/introducing-selecttree-the-drop-down-tree-control/#comment-4946
 
However, this guy did part of it with cf and I'm getting an 1180 Error
"Call to possibly undefined method SubjectGateway".  I've asked if he
can give a flex only example.  As I'm a newbie, I'm much more into
re-use at this stage than writing the specifics myself (I"m learning as
fast as I can!). 
 
There is also this solution:
 
http://kmossman.blogspot.com/2007/03/blog-post.html
 
I'm still taking a look at this one.
 
Its a good sign though that you can think of something you might like in
flex, google it, and get multiple samples.  This is what enabled me to
learn php so fast.  I found them both by just typing "dropDownFactory =
Tree" into Google.
 
brad
 
keywords:  Tree Combobox dropDownFactory
        
        -----Original Message-----
        From: flexcoders@yahoogroups.com
        [mailto:[EMAIL PROTECTED] On Behalf Of Peter DeHaan
        Sent: Tuesday, February 26, 2008 2:04 PM
        To: flexcoders@yahoogroups.com
        Subject: RE: [flexcoders] Be the tree, Bob
        
        
        You could also try something like this:
        
        <mx:PopUpButton label="Please select a team..."
        width="{tree.width}">
        
              <mx:popUp>
        
                  <mx:Tree id="tree"
        
                          dataProvider="{mlb}"
        
                          labelField="@label"
        
                          showRoot="false"
        
                          width="300"
        
                          rowCount="8" />
        
              </mx:popUp>
        
        </mx:PopUpButton>
        
        And then tweak it slightly to fit your needs.
        
        Peter
        
                                        
        ________________________________________________________________
        From: flexcoders@yahoogroups.com
        [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
        Sent: Tuesday, February 26, 2008 10:04 AM
        To: flexcoders@yahoogroups.com
        Subject: RE: [flexcoders] Be the tree, Bob
        
        
        Start with setting dropDownFactory=Tree.  There might be some
        other things that need fixing though.
        
                                        
        ________________________________________________________________
        From: flexcoders@yahoogroups.com
        [mailto:[EMAIL PROTECTED] On Behalf Of Brad Bueche
        Sent: Tuesday, February 26, 2008 9:41 AM
        To: flexcoders@yahoogroups.com
        Subject: [flexcoders] Be the tree, Bob
        
        
        
http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-control-using-the-expanditem-method/
        
        
        
        Is there anyway to get the tree view INTO the combo box?
        
        
        
        I really like the idea of having a hierarchical menu that looks
        exactly like the tree in this example.  I just want it to drop
        down and be a menu like the combo box.  I detest the windows
        file manager interface (because of its inefficient use of screen
        real-estate) and I dont like cascading menu's because I get
        really annoyed having to slow down and use my mouse in slow
        motion just so I can get to the sub-menu I want.
        
        
        
        I think the drop down tree hiearchy within a combobox solves
        both of these problems. 1).  Its a great use of screen
        real-estate  --- if you are not using it it takes up practically
        no room and 2) the hierarchy is persistent and I dont have to be
        a jedi master with my mouse....and I dont have to move %80 down
        and to the right to get the menu I want.
        
        
        
        So would it be possible to do a tree in a combo box?  Or, if
        thats impossible, I guess I can just put the tree on a
        application bar and use it like a menu?
        
        
        
        brad
        
        


 


Reply via email to