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 #34851 is a reply to message #34821] Thu, 15 December 2011 04:44 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1361
Registered: December 2006
Ultimate Contributor
mirek wrote on Tue, 13 December 2011 12:52

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.


Well, documentation for Column::AddIndex() says that "The newly created index is assigned the given identifier.". At the same time documentation for Column::Add() says that it "Adds another source data index to the list of source indices used as the data for the given output column.".

So, based on this documentation I'd use Add() instead of AddIndex().

And there is no notion of getting ArrayMap instead of single Value in documentation.

I understand that documentations is not fun to write and to read. I never write or read it myself. But something like KNOWLEGE BASE, something that in a VERY SHORT FORM lists and describes used concepts and relationships among them would be extremely useful. What is ArrayCtrl made from, how this stuff can be combined, and what will be the outcome. No lyrics, just concepts and relationships. Smile


Regards,
Novo
 
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 29 07:42:45 CEST 2024

Total time taken to generate the page: 0.03235 seconds