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
Messages: 1082 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.
|
|
|
Goto Forum:
Current Time: Fri Sep 20 08:45:01 CEST 2024
Total time taken to generate the page: 0.03409 seconds
|