[Project_owners] topmost window/dialog?

Eric H. Jung grimholtz at yahoo.com
Sun Mar 26 16:43:55 EST 2006


Wow, you're a genius. Michael has good genes :)

Thank you.

--- HJ <bugs4hj at netscape.net> wrote:

> Eric H. Jung wrote:
> > Thanks, HJ.
> > 
> > Do you think there's a way to change the zlevel dynamically at runtime from alwaysRaised
> > (zlevel=6) to 5? I tried this:
> 
> Yes, you can use:
> 
> const CI = Components.interfaces;
> var xulwin = window.QueryInterface(CI.nsIInterfaceRequestor)
> .getInterface(CI.nsIWebNavigation)
> .QueryInterface(CI.nsIDocShellTreeItem)
> .treeOwner
> .QueryInterface(CI.nsIInterfaceRequestor)
> .getInterface(CI.nsIXULWindow);
> 
> xulwin.zLevel = xulwin.normalZ;
> xulwin.zLevel = xulwin.raisedZ;
> 
> /HJ
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 



More information about the Project_owners mailing list