Alternating Column Colors?

Bob Sneidar bobs at twft.com
Fri Jan 28 18:54:58 EST 2011


Oh cool! Then you could make a chess or checkers game! I get it! 

I read the API and none of the properties suggests you can do this. I think you will have to find the part of the parent script that draws the cells and change the background color on each one individually for odd or even rows. 

The problem will then become, what happens if there is no data? Rows get colored even if there is no data, but no actual cells (cloned fields) get created until there is data. 

I tried to edit the row template and put a colored square over the gray bar, but mine is a table not a form. You might be able to do it in a form, I'm not sure. At any rate it didn't work for me. 

Bob


On Jan 28, 2011, at 1:55 PM, Scott Rossi wrote:

> Hi List:
> 
> The data grid nicely incorporates alternating line colors.  But does anyone
> know if it's possible to make alternating column colors or cell colors?
> 
> I'm building a control that has a horizontal scrolling data grid with only
> one row.  I'd like to be able to set alternating colors for cells or columns
> in the row.  Possible?
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list