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  |
|
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 );
}
|
|
|
Goto Forum:
Current Time: Wed Aug 27 17:50:38 CEST 2025
Total time taken to generate the page: 0.05098 seconds
|