That's right, you have to subclass TextInput to implement those color
styles.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of lhy90936
Sent: Thursday, August 30, 2007 7:10 PM
To: [email protected]
Subject: [flexcoders] Re: Changing text color of item renderer in
datagrid

 

Hi,

I've tried the textRollOverColor but that did not work.
My itemrenderer still doesn't change colors when rollover.

Regards,
hy

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "lhy90936" <[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
> 
> Thank you.
> 
> What about the selection: textSelectedColor?
> 
> When I checked the Reference for TextInput class, I could not find 
> anything about this textRollOverColor, or selection color....
> Can I know where can we find all this info?
> 
> Thank you
> 
> hy
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <aharui@> wrote:
> >
> > textRollOverColor
> > 
> > 
> > 
> > ________________________________
> > 
> > From: [email protected]
<mailto:flexcoders%40yahoogroups.com>  
> [mailto:[email protected]
<mailto:flexcoders%40yahoogroups.com> ] On
> > Behalf Of lhy90936
> > Sent: Thursday, August 30, 2007 9:20 AM
> > To: [email protected] <mailto:flexcoders%40yahoogroups.com>

> > Subject: [flexcoders] Changing text color of item renderer in 
> datagrid
> > 
> > 
> > 
> > Hi,
> > 
> > I have the following datagrid:
> > <mx:DataGridColumn field="name" ......... />
> > <mx:DataGridColumn itemRenderer="myRenderer" ...... />
> > 
> > In myRenderer, I extend from the TextInput class; with the text 
> > color:WHITE
> > 
> > My question is:
> > When I do a mouse rollover/selection on any row of the datagrid, 
> how 
> > can I change the text color of my renderer?
> > If I add the rollover/selection event listener for my renderer, 
it 
> > will only change the color when my mouse is over its column.
> > However, I want it to change colour whenever the datagrid row is 
> > selected/ rollover.
> > 
> > Thank you very much.
> > 
> > Regards,
> > hy
> >
>

 

Reply via email to