OK, figured this one out...

All controls that "can receive focus" implement
IFocusManagerComponent. One property of this is 'focusEnabled'

When designing components, the 'children' components should probably
be set to 'focusEnabled=false' if they're going to be used in a PopUp
of an itemEditor.

Setting 'focusEnabled=false' on all of the "pieces" of my popup solved
my problem.

hope this helps someone else down the road.

cheers,
Thunder

--- In flexcoders@yahoogroups.com, "thunderstumpgesatwork"
<[EMAIL PROTECTED]> wrote:
>
> 
> I am running into a doozie of a problem.
> 
> I'm trying to use a custom popup button as an item editor in a data
> grid. However as soon as the PopUp is created, and the "open" event
> fires, the data grid loses focus, the editor closes, and the popup
> goes away.
> 
> In the DataGrid framework code, I traced it to this function that is
> causing the focus to be set back to the data grid, and thereby losing
> focus on the popup (closing it)...
> 
> private function deactivateHandler(event:Event):void
> {
>   // if stage losing activation, set focus to DG so when we get it back
>   // we popup an editor again
>   if (itemEditorInstance)
>   {
>     endEdit(DataGridEventReason.OTHER);
>     losingFocus = true;
>     setFocus();
>   }
> }
> 
> 
> Anyone have any good ideas here? I am using a custom popup to provide
> a custom picker for a "combo-box" style control. the combo stays open
> while they make a selection and click OK or Cancel.
> 
> thanks for any ideas,
> Thunder
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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