mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
GridCtrl: Fixed painting summary row if view's width is greater than total columns' width
git-svn-id: svn://ultimatepp.org/upp/trunk@3271 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e08c8bb0bf
commit
0577f1a086
1 changed files with 13 additions and 0 deletions
|
|
@ -1230,6 +1230,19 @@ void GridCtrl::Paint(Draw &w)
|
|||
style, stdfont, false, false,
|
||||
0, -1, 0,
|
||||
true);
|
||||
if(summary_row)
|
||||
{
|
||||
Color fg = Black;
|
||||
Color bg = Blend(Blue, White, 240);
|
||||
w.DrawRect(rx, y, cx, 1, Gray);
|
||||
|
||||
if(style & GD::READONLY)
|
||||
{
|
||||
bg = Blend(bg, SGray(), 40);
|
||||
fg = Blend(fg, SGray(), 200);
|
||||
}
|
||||
display->Paint(w, rx, y + 1, cx, GD_HDR_HEIGHT - 1, Value(""), style, fg, bg, stdfont, false, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
w.End();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue