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 #19608 is a reply to message #19606] Mon, 22 December 2008 20:02 Go to previous messageGo to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

unodgs wrote on Mon, 22 December 2008 19:27

No, nothing is strange, just haven't seen this code for a long time Wink. The idea behind ColorRows/ColorCols was to enable or disable coloring of even rows/cols with single method call. They are just "wrappers" to ColoringMode, Even(Odd)Color sequence. So to enable your custom coloring scheme call EvenColor after ColorRows or call it with ColoringMode method without taking care of call order.
I know ColorRows is more readable than ColoringMode(1) but I won't change it now (you can achieve what you want in a little bit different way)


I think the difference these functions not essential, but the similarity of names is - and not selfrefference and not transparent, why not obvious use of this or that.

Maybe once, add the words in the title of functions, which would be more accurately referred to the actions that they produce?

And the rest - Thank you for a quick response.


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:59:01 CEST 2025

Total time taken to generate the page: 0.05405 seconds