Hi,

I have a TitleWindow-based component with which I am listening for the
FlexEvent.CREATION_COMPLETE event.  The Flex 2 API doc has this to say
about CREATION_COMPLETE:

"Dispatched when the component has finished its construction, property
processing, measuring, layout, and drawing."

The problem is that at this time, my component's "borderMetrics"
property has a value of 0 for each of its properties -- top, right,
bottom, and left.  However, when the component appears in the UI, it
clearly has a 3-pixel border (that I specified in the component's MXML
using "borderThicknessTop", "borderThicknessRight", etc) and not to
mention the standard title bar that appears for all TitleWindows.

I would have assumed that the widths and heights of these borders, and
the title bar header, would be reflected in the TitleWindow's
borderMetrics property, but they are not*.  Can anyone explain why
this is?

Thanks,

Erik

* I have verified that they are not being drawn in some futuree frame
*after* CREATION_COMPLETE by putting in a simple click event listener
and checking after the window has completed drawing itself.  The
TitleWindow.borderMetrics's properties are still all zero.

Reply via email to