DG: alternateRowColor

Trevor DeVore lists at mangomultimedia.com
Tue Jan 12 12:55:31 EST 2010


On Jan 12, 2010, at 12:19 PM, Richard Gaskin wrote:

> I need to set the background and alternate row colors in my DG to  
> custom values, but when I edit the props for those I get the  
> background color applied only to the alternate rows with the  
> alternate row color showing correctly within its bounds, while the  
> background of all odd-numbered rows shows white.

Hi Richard,

Background color is different then the row color. Try this:

set the dgProps["row color"] of group 1 to "red"
set the dgProps["alternate row color"] of group 1 to "green"

You should have alternating red/green lines.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: http://revolution.bluemangolearning.com



More information about the use-livecode mailing list