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   |
|
unodgs wrote on Mon, 22 December 2008 19:27 | No, nothing is strange, just haven't seen this code for a long time . 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 );
}
|
|
|
Goto Forum:
Current Time: Wed Aug 27 22:57:08 CEST 2025
Total time taken to generate the page: 0.06314 seconds
|