Thanks that was very helpful. It turns out that there is a Magic Number,
aka 10, that is used to position the Close Button and the Title Text
text field. So I guess overriding the layoutChrome() method is my only
option.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of David Spurr
Sent: 27 November 2007 16:35
To: [email protected]
Subject: [flexcoders] Re:Styles for the Title Bar of a TitleWindow or
Panel

 

I customised the TitleWindow recently, the Panel moves the title bar
around (I think in the layoutChrome() method, but I'm not looking at
code) so that it overlaps the border, so it doesn't matter what you set
your border metrics (if that's what you're trying) to the title bar will
always be overlapping the border.

I had to override the layoutChrome() method and move things around in my
component to get them in the right place.

Hope that helps,

-D 

 

Reply via email to