Thanks Matt,

I had already taken that option, now I have to get the VBox to resize
to the available space in the cell. I would assume this would mean
overwriting the getPrefferedHeight and getPreferredWidth methods.

Thanks,

Andrew.





--- In flexcoders@yahoogroups.com, Matt Chotin <[EMAIL PROTECTED]> wrote:
> You could just use a VBox with a label inside of it. In the
setValue method
> you'd simply set the backgroundColor style on the VBox (in addition
to the
> text of the label).
> 
> 
> 
> Matt
> 
> 
> 
> _____ 
> 
> From: Andrew Spaulding [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 02, 2005 4:58 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] simple datagrid cell colour renderer
> 
> 
> 
> 
> Hi all,
> 
> Im trying to write a cell renderer that changes the background colour
> of a cell depending on the number that is displayed in it. 
> 
> Is this a simple task? I'm really struggling ... Should I make the
> cell renderer a text box and just set the background colour on that?
> 
> Best,
> 
> Andrew.
> 
> 
> 
> 
> 
> 
> _____ 
> 
> Yahoo! Groups Links
> 
> *     To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/> 
> 
> *     To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
> 
> *     Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/> Terms of Service.





Reply via email to