Re: [flexcoders] TitleWindow missing all focus events??

2007-02-02 Thread Roman Protsiuk

Overloading focusOutHandler/focusInHandler helps. You'll be able to handle
FocusEvents there.
Like in


protected override function focusOutHandler(event : FocusEvent) : void {
   if (event.relatedObject == null || !contains(event.relatedObject)) {
   // event came from outside not from one of the children
   }
   super.focusOutHandler(event);
}

R.

On 2/2/07, zhongtie [EMAIL PROTECTED] wrote:


  I pop up TitleWindows using PopupManager, and I change the titlebar
colors based on if the titleWindow is active (topmost) or not. The
problem is, I am NOT able to capture the focus event for TitleWindow
(other controls, like TextArea, has no problems), nor does
onFocusIn/onFocusOut overwrite work.

Any idea?

 



[flexcoders] TitleWindow missing all focus events??

2007-02-01 Thread zhongtie
I pop up TitleWindows using PopupManager, and I change the titlebar 
colors based on if the titleWindow is active (topmost) or not. The 
problem is, I am NOT able to capture the focus event for TitleWindow
(other controls, like TextArea, has no problems), nor does
onFocusIn/onFocusOut overwrite work. 

Any idea?