Making a grid with FG/BG setable colors

Posted by Lee Hallin on June 29, 2006

I'm making something like a multiplication table where you have, say, 9 rows and 9 columns. I want to be able to set the foreground and backgroud colors independently in each of the 81 positions.

I was thinking of using "label"s but the foreground/text color selection isn't what I'd like.

Is there a way to make this "table" an array of "labels" (or somethings) so I can programatically manipulate the caption and/or colors in a loop rather than having different names for each of them (label1, label2...)?

TIA,
Lee

Related Articles and Replies