add the button to the titlebar would be a good choice (better than rawChildren, since you don't have to worry about positioning it).
On 6/16/06, Daniel Cascais <[EMAIL PROTECTED]> wrote:
I sen't my reply to early...
It would be something like this:
private function resizeHandler( event : ResizeEvent ) : void
{
myButton.x = this.width - myButton - 6;
myButton.y = 6;
}
On 6/15/06, Tim Hoff <[EMAIL PROTECTED]> wrote:
> How would you suggest positioning the button in the header?
>
> --- In flexcoders@yahoogroups.com, "Daniel Cascais"
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi, I'm not Michael, but I can still give it a try ;)
> > In a class where you extend the Panel, you could add something like
> > this rough example:
> >
> > Blah blah blah…
> > private function creationCompleteHandler( event:Event ) : void
> > {
> > var myButton : Button = new Button();
> > this.rawChildren.addChild( myButton );
> > myButton.addEventListener( MouseEvent.CLICK,
> myButtonClickHandler );
> > }
> >
> > Daniel
> >
> > On 6/15/06, Tim Hoff <[EMAIL PROTECTED]> wrote:
> > > Hey Michael Schmalle,
> > >
> > > Since you're one of the component guru's here, I was wondering
> if you
> > > had an example of how to place an icon button in the header of a
> > > panel. I want to have a panel that the user can pin to keep it
> > > visible at all times. I suppose that I could subclass a
> titleWindow.
> > > I just haven't had any experience with this yet. Any thoughts
> that
> > > you could share would be greatly appreciated.
> > >
> > > Thanks,
> > > Tim Hoff
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: http://www.mail-archive.com/flexcoders%
> 40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Daniel Cascais
> > Tel: +56 (0)2 4589495
> > Cel: +56 (0)9 9417355
> >
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
--
Daniel Cascais
Tel: +56 (0)2 4589495
Cel: +56 (0)9 9417355
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
__._,_.___
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.