Thanks, thats exactly what we have done now.

The slight downside/peformance is that having to capture focus 
in/focus out you it fires for every tab change within the window(ie a 
lot) and you have to check to see whether focus is just moving 
somewhere within the window.

Would be nice if there was someday an activate/deactivate event on 
the window itslef.




--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There is no event that exactly matches what you want.  A good design
> would set focus somewhere in each popup on creation.  Flex doesn't 
do
> that for you.  Then the system would restore focus as each popup 
came
> back to top.
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of reflexactions
> Sent: Tuesday, December 18, 2007 5:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] TitleWindow activation
> 
> 
> 
> We have an application where we use the PopUpManager to add a 
number of 
> TitleWindows.
> 
> I want to know when a window is activated i.e. it is clicked on and 
the 
> window is brought to the front and vice versa when it ceases to be 
the 
> topmost window.
> 
> I thought the track focusin/focusout would be the solution but this 
> doesnt appear to always work as expected.
> 
> It seem clicking on a window doesnt give it focus it just brings it 
to 
> the top, only clicking into a control in that window actually 
causes 
> focus to be set.
> 
> FocusIn/FocusOut seems to work only when I click on a TitleWindow 
once 
> I have previously clicked in to a control in that window and also 
the 
> same for window that is being moved backwards.
> 
> So .... what event can I listen to know when a window is clicked on 
or 
> is brought to the front by the PopUpManager.bringToFront?
> 
> Hope thats clear..
> tks
>


Reply via email to