Try to add the Button to the Panel's titleBar UIComponent instead. This
way you can still use includeInLayout = true and the Button will work as
expected. Just make sure to explicitely set the width and height of the
Button, otherwise it won't be drawn inside the titleBar.

i.e. inside your Panel subclass:

override protected function createChildren():void

Dirk.

> -----Original Message-----
> From: [email protected] 
> [mailto:[EMAIL PROTECTED] On Behalf Of B.Brey
> Sent: Wednesday, April 19, 2006 12:32 PM
> To: Flex
> Subject: [flexcoders] Minimize button on panel title bar
> 
> I've managed to get a button positioned correctly on a panel 
> using includeInLayout = false.
> But it seems that there is something blocking events to the 
> button now (Button does not work). Does anyone have any ideas 
> on how to fix this?
> 
> 
> with regards,
> 
> Bas
> 
> 
> 
> 
> 
> 
> --
> 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
> 
> 
> 
>  
> 
> 
> 


--
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