Re: EuGTK - setRow

new topic     » goto parent     » topic index » view thread      » older message » newer message
irv said...
Jerry_Story said...

I'm still confused.

setRow(i, lstNutrientsREQ, lvNutrientsREQ, "background", colors[color])

What I want to do is set row i to the color. How can that be done?

If i indicates column (vertical) and not row (horizontal), then what indicates row?

The list will sometimes be re-sorted but when it is, it is also re-colored, so the colors don't need to follow the items.

The color of an item changes. It changes according to the amount of the nutrient. Green means enough. Red means too much.

This isn't clear - you're saying the color doesn't follow the item, then you're saying it changes according to the amount of the nutrient.

Can you give me an example or a picture of what you're trying to do?

Just a guess, and I apologize for butting in, but I think he means that the food item exists in a column in which the color indicates a nutritional assessment, and if its nutritional assessment changes, it will be moved to another column, which would have a different color appropriate to the amount of nutrient, therby not bringing with it the previous color it had.

That is, an item's color changes when moved, to the color of the place it's *moved* to (thereby not carrying its color *with* it), because the place it's moved to relates to and indicates its newly assesed nutritional value.

I think that's right?

Dan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu