Thanks, but that still didn't work.
Here's a screenshot of what I have now:
http://www.carlwelch.com/listBoxsample/listbox.jpg
but I'm trying to make it look more like this:
http://www.carlwelch.com/listBoxsample/listbox2.jpg
this the code I'm using:
import mx.styles.CSSStyleDeclaration;
if (_global.styles.DataGrid == undefined) {
_global.styles.DataGrid = new CSSStyleDeclaration();
}
_global.styles.DataGrid.setStyle("alternatingRowColors", [0x000000, 0x0B0B0B]);
_global.styles.DataGrid.setStyle("color ", 0xFFFFFF);
_global.styles.DataGrid.setStyle.color = "white";
_global.styles.DataGrid.setStyle("themeColor", "haloBlue");
_global.styles.DataGrid.setStyle("borderStyle", "solid");
_global.styles.DataGrid.setStyle("borderColor", 0x666666);
if (_global.styles.List == undefined) {
_global.styles.List = new CSSStyleDeclaration();
}
_global.styles.List.setStyle("color", 0xFFFFFF);
if (_global.styles.Tree == undefined) {
_global.styles.Tree = new CSSStyleDeclaration();
}
_global.styles.Tree.setStyle("color", 0x000000);
On 10/15/06, nelson ramirez <[EMAIL PROTECTED]> wrote:
The DataGrid component implements the List component. So you need to set the
style for List.
if (_global.styles.List == undefined) {
_global.styles.List = new CSSStyleDeclaration();
}
_global.styles.List.setStyle("color", 0xFFFFFF);
On 10/15/06, Carl Welch <[EMAIL PROTECTED]> wrote:
>
> I'm trying to make the color of text white in a datagrid. it doesn't
> seem to be working, though. The text looks dark blue against a black
> background. Also is it possible to change the color of the top part of
> the datagrid. Even though I have the cells set to an alternating color
> of black and grey, the column labels stay white.
>
> I googled but couln't find anything helpful...
>
> import mx.styles.CSSStyleDeclaration;
> if (_global.styles.DataGrid == undefined) {
> _global.styles.DataGrid = new CSSStyleDeclaration();
> }
> _global.styles.DataGrid.setStyle("alternatingRowColors", [0x000000,
> 0x0B0B0B]);
> _global.styles.DataGrid.setStyle("color ", 0xFFFFFF);
> _global.styles.DataGrid.setStyle("themeColor", "haloBlue");
> _global.styles.DataGrid.setStyle("borderStyle", "solid");
> _global.styles.DataGrid.setStyle("borderColor", 0x666666);
>
>
> Thanks...
> --
> Carl Welch
> http://www.carlwelch.com
> [EMAIL PROTECTED]
> 805.403.4819
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
--
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com