Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl: Display depending by value in other column
Re: ArrayCtrl: Display depending by value in other column [message #34821 is a reply to message #34635] Tue, 13 December 2011 18:52 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
forlano wrote on Fri, 02 December 2011 11:50

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



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

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


Now ColoredStatus will be getting ArrayMap instead of single Value.
 
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: Wed May 15 23:59:12 CEST 2024

Total time taken to generate the page: 0.01433 seconds