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 » [Minor Bug & patch] GridCtrl should use different color to describe inactive cursor.
[Minor Bug & patch] GridCtrl should use different color to describe inactive cursor. [message #39628] Wed, 10 April 2013 19:58
Klugier is currently offline  Klugier
Messages: 1075
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello,

I have noticed that GridCtrl uses custom color to describe inactive cursor. Why we need to change this behaviour? Personally, I think that all widgets should look similar.

I enclose patch code (GridCtrl.cpp - line 1147 - "Paint" method fragment):

                                        Color fg = SColorText;
                                        Color bg = SColorPaper;

					bool custom = true;

					if(style & GD::CURSOR)
					{
						if(style & GD::FOCUS)
						{
							fg = iscur ? Blend(bg_focus, Black, 230) : fg_focus;
							bg = iscur ? Blend(bg_focus, White, 230) : bg_focus;
						}
						else
						{
							bg = Blend(SColorDisabled, bg);
						}
						custom = false;
					}


This solution is similar to that used in ArrayCtrl or TreeCtrl.

Sincerely,
Klugier


U++ - one framework to rule them all.
Previous Topic: why the gridctrl display character abnormal??
Next Topic: ArrayCtrl: Display depending by value in other column
Goto Forum:
  


Current Time: Thu Mar 28 16:45:15 CET 2024

Total time taken to generate the page: 0.00970 seconds