On 05/05/2011 03:18 PM, Port wrote:
> Yes, I did.
> Let me explain.
> I write something like that:
>
> var win1 = new qx.ui.window.Window("First Window");
> var win2 = new qx.ui.window.Window("Second Window");
>
> this.getRoot().add(win1);
> this.getRoot().add(win2,{left:100, top:100});
> win1.open();
> win2.open();
>
> In result, Second Window is Active and look like active. How to do both
> windows look like First Window (inactive window)?
>
> Thank you.
Hi Port,
I would do this by overriding the window's appearance in your own theme.
For example, if you use the Modern theme, you can change your
source/class/.../theme/Appearance.js file like this:
appearances :
{
.....
"window/captionbar" :
{
base: true,
style : function(states)
{
var useCSS = qx.core.Environment.get("css.borderradius") &&
qx.core.Environment.get("css.gradients") &&
qx.core.Environment.get("css.boxshadow");
return {
decorator: "window-captionbar-inactive" + (useCSS ? "-css" : "")
};
}
}
.....
}
Regards,
Marc
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel