Row Template Background

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Row Template Background

Post by Gage » Fri May 24, 2013 9:35 pm

In a DataGrid Form, is the Background graphic not shown?

How can the alternating white and light blue background be overridden to display what is on the Row Template?

I have looked over this article, but the cell coloring does not seem to work for the form style or something: http://lessons.runrev.com/s/lessons/m/d ... solve=true

Thanks in advance,
Phil E.

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: Row Template Background

Post by Gage » Fri May 24, 2013 9:55 pm

It appears that by default, the DataGrid ignores the "Background" graphic in the Row Template. I added another graphic with a different name, but exactly the same colors and dimensions, and it displayed fine.

Is there a better way to do this, where I can just make one object in the Row Template, and set it so that it actually gets used?

What does the "Background" graphic actually even get used for then?

Hope that helps others with the same question.
Phil E.

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: Row Template Background

Post by Gage » Fri May 24, 2013 10:43 pm

Even better solution!

on LayoutControl
--all your other layout code here

set the dgProp["row color"] of me to "#,#,#"
end LayoutControl

Phil E.

Post Reply