Controlling depth of Spark TitleWindows

oscar's Avatar

oscar

09 Sep, 2011 06:32 PM

Hi,

I'm working on an application where multiple titlewindows (Spark) are created. I'm using something like this in commands to create each popup:

var window:PicturesWindow = new PicturesWindow();
PopUpManager.addPopUp( window, contextView, false );
window.width = 400;
window.height = 200;
PopUpManager.centerPopUp( window );

I want to add the functionality to bring to front the titlewindow that gains focus.
I tried to keep track of the depth in a model. and do something lie this:

window.depth = model.getNextWindowDepth();

each time a use clicks on a window, but didn't work. I think it's because the parent of the windows is "contextView".

Any idas? thanks in advance.

  1. 1 Posted by Michal Wroblews... on 10 Sep, 2011 06:21 PM

    Michal Wroblewski's Avatar

    Try using PopUpManager.bringToFront method on InteractiveObject.focusIn event or click event as you already did.

  2. 2 Posted by oscar on 10 Sep, 2011 07:02 PM

    oscar's Avatar

    Totally right. thanks a lot.

  3. oscar closed this discussion on 10 Sep, 2011 07:02 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac