CSSStyleDeclaration in AIR app Windows

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

CSSStyleDeclaration in AIR app Windows

FlexCoders mailing list
I'm developing a multi-window Flex/AIR desktop app.
I would very much like to be able to change CSSStyleDeclarations on a per-window basis. It seems that if I do:
var decl:CSSStyleDeclaration = window.styleManager.getCSSStyleDeclaration("fully.qualified.WidgetClassName");decl.setStyle("widgetColor", 0xFF0000);
The style change affects all WidgetClassName instances across all windows.
Is there some other means of accomplishing what I'm trying to accomplish? It would have to work with non-inheriting styles also.
Reply | Threaded
Open this post in threaded view
|

Re: CSSStyleDeclaration in AIR app Windows

FlexCoders mailing list
I think if each window loads a module, that module gets its own styles.  You might need Flex 4.6 or later for that to work.

-Alex

From: <[hidden email]<mailto:[hidden email]>> on behalf of "Dave Glasser [hidden email]<mailto:[hidden email]> [flexcoders]" <[hidden email]<mailto:[hidden email]>>
Reply-To: "[hidden email]<mailto:[hidden email]>" <[hidden email]<mailto:[hidden email]>>
Date: Friday, July 24, 2015 at 6:20 PM
To: "[hidden email]<mailto:[hidden email]>" <[hidden email]<mailto:[hidden email]>>
Subject: [flexcoders] CSSStyleDeclaration in AIR app Windows



I'm developing a multi-window Flex/AIR desktop app.

I would very much like to be able to change CSSStyleDeclarations on a per-window basis. It seems that if I do:

var decl:CSSStyleDeclaration = window.styleManager.getCSSStyleDeclaration("fully.qualified.WidgetClassName");
decl.setStyle("widgetColor", 0xFF0000);

The style change affects all WidgetClassName instances across all windows.

Is there some other means of accomplishing what I'm trying to accomplish? It would have to work with non-inheriting styles also.


Reply | Threaded
Open this post in threaded view
|

Re: CSSStyleDeclaration in AIR app Windows

FlexCoders mailing list
Interesting idea, I'll look into it. I'm using Flex 4.13 currently.




      From: "Alex Harui [hidden email] [flexcoders]" <[hidden email]>
 To: "[hidden email]" <[hidden email]>
 Sent: Wednesday, July 29, 2015 9:40 AM
 Subject: Re: [flexcoders] CSSStyleDeclaration in AIR app Windows
   
#yiv2071966122 #yiv2071966122 -- #yiv2071966122 .yiv2071966122ygrp-photo-title{clear:both;font-size:smaller;height:15px;overflow:hidden;text-align:center;width:75px;}#yiv2071966122 div.yiv2071966122ygrp-photo{background-position:center;background-repeat:no-repeat;background-color:white;border:1px solid black;height:62px;width:62px;}#yiv2071966122 div.yiv2071966122photo-title a, #yiv2071966122 div.yiv2071966122photo-title a:active, #yiv2071966122 div.yiv2071966122photo-title a:hover, #yiv2071966122 div.yiv2071966122photo-title a:visited {text-decoration:none;}#yiv2071966122 div.yiv2071966122attach-table div.yiv2071966122attach-row {clear:both;}#yiv2071966122 div.yiv2071966122attach-table div.yiv2071966122attach-row div {float:left;}#yiv2071966122 p {clear:both;padding:15px 0 3px 0;overflow:hidden;}#yiv2071966122 div.yiv2071966122ygrp-file {width:30px;}#yiv2071966122 div.yiv2071966122attach-table div.yiv2071966122attach-row div div a {text-decoration:none;}#yiv2071966122 div.yiv2071966122attach-table div.yiv2071966122attach-row div div span {font-weight:normal;}#yiv2071966122 div.yiv2071966122ygrp-file-title {font-weight:bold;}#yiv2071966122 #yiv2071966122

I think if each window loads a module, that module gets its own styles.  You might need Flex 4.6 or later for that to work.
-Alex


From: <[hidden email]> on behalf of "Dave [hidden email] [flexcoders]" <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, July 24, 2015 at 6:20 PM
To: "[hidden email]" <[hidden email]>
Subject: [flexcoders] CSSStyleDeclaration in AIR app Windows

 I'm developing a multi-window Flex/AIR desktop app.
I would very much like to be able to change CSSStyleDeclarations on a per-window basis. It seems that if I do:
var decl:CSSStyleDeclaration = window.styleManager.getCSSStyleDeclaration("fully.qualified.WidgetClassName");decl.setStyle("widgetColor", 0xFF0000);
The style change affects all WidgetClassName instances across all windows.
Is there some other means of accomplishing what I'm trying to accomplish? It would have to work with non-inheriting styles also.




 
Reply | Threaded
Open this post in threaded view
|

Re: CSSStyleDeclaration in AIR app Windows

FlexCoders mailing list
Yeah, there should be per-module styles in all Apache Flex versions.

BTW, you’ll get more timely assistance by asking on the [hidden email] mailing list.

-Alex

From: <[hidden email]<mailto:[hidden email]>> on behalf of "Dave Glasser [hidden email]<mailto:[hidden email]> [flexcoders]" <[hidden email]<mailto:[hidden email]>>
Reply-To: "[hidden email]<mailto:[hidden email]>" <[hidden email]<mailto:[hidden email]>>
Date: Wednesday, July 29, 2015 at 7:25 AM
To: "[hidden email]<mailto:[hidden email]>" <[hidden email]<mailto:[hidden email]>>
Subject: Re: [flexcoders] CSSStyleDeclaration in AIR app Windows



Interesting idea, I'll look into it. I'm using Flex 4.13 currently.





________________________________
From: "Alex Harui [hidden email]<mailto:[hidden email]> [flexcoders]" <[hidden email]<mailto:[hidden email]>>
To: "[hidden email]<mailto:[hidden email]>" <[hidden email]<mailto:[hidden email]>>
Sent: Wednesday, July 29, 2015 9:40 AM
Subject: Re: [flexcoders] CSSStyleDeclaration in AIR app Windows



I think if each window loads a module, that module gets its own styles.  You might need Flex 4.6 or later for that to work.

-Alex



From: <[hidden email]<mailto:[hidden email]>> on behalf of "Dave Glasser [hidden email]<mailto:[hidden email]> [flexcoders]" <[hidden email]<mailto:[hidden email]>>
Reply-To: "[hidden email]<mailto:[hidden email]>" <[hidden email]<mailto:[hidden email]>>
Date: Friday, July 24, 2015 at 6:20 PM
To: "[hidden email]<mailto:[hidden email]>" <[hidden email]<mailto:[hidden email]>>
Subject: [flexcoders] CSSStyleDeclaration in AIR app Windows


I'm developing a multi-window Flex/AIR desktop app.

I would very much like to be able to change CSSStyleDeclarations on a per-window basis. It seems that if I do:

var decl:CSSStyleDeclaration = window.styleManager.getCSSStyleDeclaration("fully.qualified.WidgetClassName");
decl.setStyle("widgetColor", 0xFF0000);

The style change affects all WidgetClassName instances across all windows.

Is there some other means of accomplishing what I'm trying to accomplish? It would have to work with non-inheriting styles also.






Reply | Threaded
Open this post in threaded view
|

Re: CSSStyleDeclaration in AIR app Windows

FlexCoders mailing list
Thanks again, Alex. I wasn't even aware of that list. I'll subscribe.

      From: "Alex Harui [hidden email] [flexcoders]" <[hidden email]>
 To: "[hidden email]" <[hidden email]>
 Sent: Wednesday, July 29, 2015 12:30 PM
 Subject: Re: [flexcoders] CSSStyleDeclaration in AIR app Windows
   
#yiv3312844752 #yiv3312844752 -- #yiv3312844752 .yiv3312844752ygrp-photo-title{clear:both;font-size:smaller;height:15px;overflow:hidden;text-align:center;width:75px;}#yiv3312844752 div.yiv3312844752ygrp-photo{background-position:center;background-repeat:no-repeat;background-color:white;border:1px solid black;height:62px;width:62px;}#yiv3312844752 div.yiv3312844752photo-title a, #yiv3312844752 div.yiv3312844752photo-title a:active, #yiv3312844752 div.yiv3312844752photo-title a:hover, #yiv3312844752 div.yiv3312844752photo-title a:visited {text-decoration:none;}#yiv3312844752 div.yiv3312844752attach-table div.yiv3312844752attach-row {clear:both;}#yiv3312844752 div.yiv3312844752attach-table div.yiv3312844752attach-row div {float:left;}#yiv3312844752 p {clear:both;padding:15px 0 3px 0;overflow:hidden;}#yiv3312844752 div.yiv3312844752ygrp-file {width:30px;}#yiv3312844752 div.yiv3312844752attach-table div.yiv3312844752attach-row div div a {text-decoration:none;}#yiv3312844752 div.yiv3312844752attach-table div.yiv3312844752attach-row div div span {font-weight:normal;}#yiv3312844752 div.yiv3312844752ygrp-file-title {font-weight:bold;}#yiv3312844752 #yiv3312844752

Yeah, there should be per-module styles in all Apache Flex versions.
BTW, you’ll get more timely assistance by asking on the [hidden email] mailing list.
-Alex
From: <[hidden email]> on behalf of "Dave [hidden email] [flexcoders]" <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, July 29, 2015 at 7:25 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: [flexcoders] CSSStyleDeclaration in AIR app Windows

 Interesting idea, I'll look into it. I'm using Flex 4.13 currently.




From: "Alex [hidden email] [flexcoders]" <[hidden email]>
To: "[hidden email]" <[hidden email]>
Sent: Wednesday, July 29, 2015 9:40 AM
Subject: Re: [flexcoders] CSSStyleDeclaration in AIR app Windows



I think if each window loads a module, that module gets its own styles.  You might need Flex 4.6 or later for that to work.
-Alex


From: <[hidden email]> on behalf of "Dave [hidden email] [flexcoders]" <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Friday, July 24, 2015 at 6:20 PM
To: "[hidden email]" <[hidden email]>
Subject: [flexcoders] CSSStyleDeclaration in AIR app Windows

 I'm developing a multi-window Flex/AIR desktop app.
I would very much like to be able to change CSSStyleDeclarations on a per-window basis. It seems that if I do:
var decl:CSSStyleDeclaration = window.styleManager.getCSSStyleDeclaration("fully.qualified.WidgetClassName");decl.setStyle("widgetColor", 0xFF0000);
The style change affects all WidgetClassName instances across all windows.
Is there some other means of accomplishing what I'm trying to accomplish? It would have to work with non-inheriting styles also.