U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl: Display depending by value in other column
ArrayCtrl: Display depending by value in other column [message #34635] Fri, 02 December 2011 17:50 Go to previous message
forlano is currently offline  forlano
Messages: 1241
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

with SetDisplay() I can tune the cells of a coloumn.
But now I need to set the color depending by the value got in another column (same row).
How can I get this value when dealing with Display? For example:

arrPlayerRes.AddColumn("Pnt1", t_("Score"), 5).SetDisplay(Single<ColoredStatus>());

arrPlayerRes.AddColumn("RATED", t_("RATED"), 4);

The color in column "Pnt1" should be determined by the value of column "RATED".

Thanks,
Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Minor Bug & patch] GridCtrl should use different color to describe inactive cursor.
Next Topic: Grid cursor and its color
Goto Forum:
  


Current Time: Sun Jun 21 13:53:53 GMT+2 2026

Total time taken to generate the page: 0.00552 seconds