Is there an easier way to change the text color in a DG Row?

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
BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Is there an easier way to change the text color in a DG Row?

Post by BarrySumpter » Thu Aug 11, 2011 3:54 am

I found this to be the only reference to changing the color of a DG row.
(well, so far anyway)

7332-How-Can-I-Colorize-Individual-Lines-in-a-Table-
http://lessons.runrev.com/spaces/lesson ... n-a-Table-

I'd like to change a row that contains an increase of sales over 100% to Blue.
And a decrease in sales of over 50% to Red.

Even though it's looks simple - I can't seem to debug trace the logic well enough to understand whats going on.

Is there not an easier way in LiveCode to change the text color in a datagrid row?
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Is there an easier way to change the text color in a DG Row?

Post by bangkok » Thu Aug 11, 2011 8:22 am


BarrySumpter
Posts: 1201
Joined: Sun Apr 24, 2011 2:17 am

Re: Is there an easier way to change the text color in a DG Row?

Post by BarrySumpter » Thu Aug 11, 2011 10:27 pm

Thats the same methodology.

I'll have another go today.
As it looks a bit easier after a good nights sleep.

But good to know its there with all the other cool examples.
Thanks for posting this.
All my best,
Barry G. Sumpter

Deving on WinXP sp3-32 bit. LC 5.5 Professional Build 1477
Android/iOS/Server Add Ons. OmegaBundle 2011 value ROCKS!
2 HTC HD2 Latest DorimanX Roms
Might have to reconsider LiveCode iOS Developer Program.

Post Reply