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 #34642 is a reply to message #34641] Fri, 02 December 2011 21:51 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1207
Registered: March 2006
Location: Italy
Senior Contributor
sergeynikitin wrote on Fri, 02 December 2011 21:22

I send to colored column 2 values from 2 columns:

for example: "2:10"

And in display method :

I split this combined value ( function Split() ) and use 1-st for display value 2-nd for color.


Prevet Sergey,

This is a tricky solution that I will use if no other solution will arrive. But I hoped in some more natural way. For example some variable/pointer within Display that has access to the whole row of the ArrayCtrl.
For example the competitor, Smile , GridCtrl use 'parent'. Then parent->Get(MYCOLUMN) permit to get different value in other column. It is a very handy solution .
Each time is a struggle for me to decide wich ctrl to use.

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: Sat Jun 14 17:41:25 CEST 2025

Total time taken to generate the page: 0.04975 seconds