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: 628
Registered: September 2012
Location: Poland, Kraków
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


Ultimate++ - 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: Mon Oct 14 18:41:16 CEST 2019

Total time taken to generate the page: 0.01012 seconds