What if you put the Panel on a Canvas at 0,0, then put the image/icon
wherever you want on top?
Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Wednesday, May 11, 2005 4:26 PM
To: [email protected]
Subject: Re: [flexcoders] Adding icon to panel?

On 5/12/05, Blake Kadatz <[EMAIL PROTECTED]> wrote:
> Is it possible to add an icon to a panel's titlebar?  I've tried:
> 
> <mx:Panel icon="@Embed('icon.png')" title="Test">
> 
> but that doesn't seem to work.  If it's not possible to have an icon,

The icons gets embedded just fine.  It just doesn't show because the
Panel is not designed that way.  The icon is used when the Panel is
inside a TabNavigator (for the tabs), for example.

> can anyone suggest a good workaround which will preserve the rounded
and
> shaded look of the titlebar?

It's possible, but not trivial.  You'll have to subclass Panel and
override the createChildren, measure, layoutChildren and draw
functions to display the icon properly, and for that you need to know
something about Panel internals.


 
Yahoo! Groups Links



 






 
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