[flexcoders] CSSStyleDeclaration in AIR app Windows

2 views
Skip to first unread message

Dave Glasser dglasser@pobox.com [flexcoders]

unread,
Jul 24, 2015, 9:20:15 PM7/24/15
to flexc...@yahoogroups.com
 

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.

__._,_.___

Posted by: Dave Glasser <dgla...@pobox.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

.

__,_._,___

Alex Harui aharui@adobe.com [flexcoders]

unread,
Jul 29, 2015, 9:48:50 AM7/29/15
to flexc...@yahoogroups.com
 

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: <flexc...@yahoogroups.com> on behalf of "Dave Glasser dgla...@pobox.com [flexcoders]" <flexc...@yahoogroups.com>
Reply-To: "flexc...@yahoogroups.com" <flexc...@yahoogroups.com>
Date: Friday, July 24, 2015 at 6:20 PM
To: "flexc...@yahoogroups.com" <flexc...@yahoogroups.com>
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.

__._,_.___

Posted by: Alex Harui <aha...@adobe.com>
.

__,_._,___

Dave Glasser dglasser@pobox.com [flexcoders]

unread,
Jul 29, 2015, 10:25:25 AM7/29/15
to flexc...@yahoogroups.com
 

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






From: "Alex Harui aha...@adobe.com [flexcoders]" <flexc...@yahoogroups.com>
To: "flexc...@yahoogroups.com" <flexc...@yahoogroups.com>
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: <flexc...@yahoogroups.com> on behalf of "Dave Glasser dgla...@pobox.com [flexcoders]" <flexc...@yahoogroups.com>
Reply-To: "flexc...@yahoogroups.com" <flexc...@yahoogroups.com>
Date: Friday, July 24, 2015 at 6:20 PM
To: "flexc...@yahoogroups.com" <flexc...@yahoogroups.com>
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.




__._,_.___

Posted by: Dave Glasser <dgla...@pobox.com>
.

__,_._,___

Alex Harui aharui@adobe.com [flexcoders]

unread,
Jul 29, 2015, 12:30:50 PM7/29/15
to flexc...@yahoogroups.com
 

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

BTW, you’ll get more timely assistance by asking on the us...@flex.apache.org mailing list.

__._,_.___

Posted by: Alex Harui <aha...@adobe.com>
.

__,_._,___

Dave Glasser dglasser@pobox.com [flexcoders]

unread,
Jul 29, 2015, 1:02:20 PM7/29/15
to flexc...@yahoogroups.com
 

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


Sent: Wednesday, July 29, 2015 12:30 PM

__._,_.___

Posted by: Dave Glasser <dgla...@pobox.com>
.

__,_._,___
Reply all
Reply to author
Forward
0 new messages