Also check out Christophe Coenraets Pod example. He has buttons on 
his header (its very cool)

Also, i dont know what kind of buttons you want, but if its just a 
close button, use a TitleWindow.


--- In flexcoders@yahoogroups.com, "Philippe Maegerman" <[EMAIL PROTECTED]> 
wrote:
> I don't know if there is a headerRenderer for Panels but you can 
remove the header (headerHeight="0") and place a controlBar.  You'll 
have to add your own close button in this case.
>  
> example:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>
> <mx:TitleWindow id="tw" width="400" height="400" 
>  headerHeight="0"
>  footerColors="[0x666666, 0x666666]" 
>  backgroundColor="#666666"
>  themeColor="#666666"
>  marginLeft="0" 
>  marginRight="0" 
>  marginBottom="0" 
>  marginTop="0" 
>  title="Et voilĂ  ..."
>  >
> 
> <mx:ControlBar id="cb" width="100%" height="30" marginTop="5" 
marginLeft="5" fontFamily="Trebuchet MS">
>  <mx:Label text="{tw.title}" color="#FFFFFF"/>
>  <mx:HBox id="hb" width="100%" horizontalAlign="left">
>   <mx:Button click="hb.setStyle('horizontalAlign','right')" 
label="align me right"/>
>  </mx:HBox>
>  <mx:Button label="X" width="25"/>
> </mx:ControlBar>
>  
> <mx:Canvas width="100%" height="100%" backgroundColor="#999999"/>
>  
> <mx:ControlBar id="cb2">
>  <mx:TextInput width="100%"/><mx:Button label="search"/>
> </mx:ControlBar>
> 
> </mx:TitleWindow>
> </mx:Application>
>  
>  
> Philippe Maegerman
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Nithya R
> Sent: jeudi 22 septembre 2005 7:56
> To: flexcoders
> Subject: [flexcoders] titile window header
> 
> 
> hai
>  
> i want to have a button on the header of the title window...
>  
> how to do that..
>  
> any help is welcome from anyone...
>  
> nithya
>  
> 
> Send instant messages to your online friends 
http://uk.messenger.yahoo.com 
> 
> --
> 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 
> 
> 
>       
> *      Visit your group "flexcoders 
<http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED] <mailto:flexcoders-
[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service <http://docs.yahoo.com/info/terms/> . 
> 
> 
> ________________________________
> 
> 
> 
> ------------------------------------------------------------------
> **STATEMENT OF CONFIDENTIALITY** 
> 
> This e-mail and any attached files are confidential and intended 
solely for the use of the individual to whom it is addressed. If you 
have received this email in error please send it back to the person 
that sent it to you. Any views or opinions presented are solely 
those of author and do not necessarily represent those the Emakina 
Company. Unauthorized publication, use, dissemination, forwarding, 
printing or copying of this email and its associated attachments is 
strictly prohibited.
> 
> We also inform you that we have checked that this message does not 
contain any virus but we decline any responsability in case of any 
damage caused by an a non detected virus.
> ------------------------------------------------------------------




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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/
 


Reply via email to