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 » GridCtrl: Display and cells of other coloumns
GridCtrl: Display and cells of other coloumns [message #9099] Tue, 17 April 2007 10:49 Go to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

with SetDisplay() I can tune the cells of a coloumn.
But now the color of a cell depends even by the value of a cell in another coloumn. Can I get this information when dealing with Display? If not, how to pass to display a Vector<Value>?

Thanks,
Luigi

[Updated on: Tue, 17 April 2007 10:50]

Report message to a moderator

Re: GridCtrl: Display and cells of other coloumns [message #9101 is a reply to message #9099] Tue, 17 April 2007 12:26 Go to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Hi!

Yes, I know the problem. That's why there is parent variable in GridDisplay class pointing to GridCtrl object. Now your code should look like this one:

void GridDisplay::Paint(..)
{
if(parent->Get(MYCOL) == 1)
bg = Red;
else
bg = White;
}

Previous Topic: SqlArray: mouse selection
Next Topic: GridCtrl package compile error
Goto Forum:
  


Current Time: Thu Apr 18 17:46:04 CEST 2024

Total time taken to generate the page: 0.01940 seconds