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 » ColorRows() in GridCtrl - Strange code. Help pls.
Re: ColorRows() in GridCtrl - Strange code. Help pls. [message #19611 is a reply to message #19608] Mon, 22 December 2008 21:40 Go to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

I understand that is already written hundreds or even thousands of lines of programming, and change the names of functions - will make a non-working programs.

I offer a beautiful solution that at least will be informative to once again use this feature (ColorRows and ColorCols).

Definition must be like this:
GridCtrl& ColorRows(bool b = true, bool initializeDefaultColor = true) {
if(initializeDefaultColor)
 return ColoringMode(2 * b).EvenColor(); 
else
 return ColoringMode(2 * b); 
} 


Variable initializeDefaultColor is SELFREFFERENCING and other people will do not make my mistake


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with ColumnWidths in GridCtrl
Next Topic: GridCtrl - crashes on UBUNTU.
Goto Forum:
  


Current Time: Wed Aug 27 17:50:38 CEST 2025

Total time taken to generate the page: 0.05098 seconds