Thanks guys for the great advise, although I'm still kinda stuck

1) Floating the buttons won't really work as the Accordions are 
dynamically created and the number of headers and panels can become 
very large requiring the headers to scroll on and off of the screen, 
sometime 1/2 off.  This would be dificult for me to keep up with, not 
immpossible, but a lot of work..
2) Tried the CanvasButton and I thought that this would work, but I 
can't seem to get it to work (I am using Flex 3 BETA).  The internal 
ActionScript adds the canvas to the button, as a child, but the 
Canvas never shows up and the IDE won't allow anything to be dropped 
on the Button/Canvas or manually inserted via MXML.  I get the 
warning message Design Mode: Cannot create Button because Button is 
not a vallid parent for that kind of item.

Am I doing something wrong, or does it just not work in Flex 3?

--- In [email protected], "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> I might try to do a full post about this soon, but you can try 
checking out
> the CanvasButton component in FlexLib. Basically this is a subclass 
of
> Button that works like Canvas, so you can easily add whatever 
children to it
> that you want. So you would use that to create your header 
renderer, which
> you can set as a header renderer because it actually subclasses 
Button. You
> can get the FlexLib components here: 
http://code.google.com/p/flexlib/
> 
> Hopefully that makes some sense. I'll try to write up a post soon 
since I've
> seen this question asked multiple times.
> 
> Doug
> 
> On 9/17/07, Alex Harui <[EMAIL PROTECTED]> wrote:
> >
> >    Yes, but you have to float buttons over the header.  Someone 
may have
> > done this already.
> >
> >
> >  ------------------------------
> >
> > *From:* [email protected] 
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *kundigee
> > *Sent:* Monday, September 17, 2007 8:27 PM
> > *To:* [email protected]
> > *Subject:* [flexcoders] Adding buttons to an Accordion header
> >
> >
> >
> > I am dynamically creating an Accordion at run time. I place a new
> > panel in the Accordion which generates a new Accordion header 
that I
> > attribute an icon to. All good so far. I need to dynamically 
place +/-
> > buttons on the right side of each header to give the user the 
ability
> > to replicate, or delete the panel/Accordion component. I can't 
seem to
> > addChild to the header with a child button. The Accordion header 
is a
> > button itself and not a container. I started to create a custom 
MXML
> > module extending Button, which I intended to substitute via the
> > headerRenderer if I could work something out, but that also will 
not
> > allow me to drop anything onto the component, as it is not a 
container.
> >
> > Is there any way to do what I am trying to accomplish?
> >
> >  
> >
>


Reply via email to