mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@7192 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7342ab8047
commit
20be2642a0
19 changed files with 53 additions and 30 deletions
|
|
@ -747,11 +747,12 @@ void ArrayCtrl::ChildGotFocus()
|
|||
RefreshRow(cursor);
|
||||
if(!acceptingrow) {
|
||||
Point p = FindCellCtrl(GetFocusCtrl());
|
||||
if(!IsNull(p))
|
||||
if(!IsNull(p)) {
|
||||
if(nocursor)
|
||||
ScrollInto(p.y);
|
||||
else
|
||||
SetCursor(p.y);
|
||||
}
|
||||
}
|
||||
Ctrl::ChildGotFocus();
|
||||
}
|
||||
|
|
@ -834,7 +835,7 @@ Size ArrayCtrl::DoPaint(Draw& w, bool sample) {
|
|||
Color fg, bg;
|
||||
Value q;
|
||||
const Display& d = GetCellInfo(i, jj, hasfocus0, q, fg, bg, st);
|
||||
if(sample || w.IsPainting(r))
|
||||
if(sample || w.IsPainting(r)) {
|
||||
if(cw < 2 * cm || editmode && i == cursor && column[jj].edit)
|
||||
d.PaintBackground(w, r, q, fg, bg, st);
|
||||
else {
|
||||
|
|
@ -846,6 +847,7 @@ Size ArrayCtrl::DoPaint(Draw& w, bool sample) {
|
|||
GetDisplay(i, jj).Paint(w, r, q, fg, bg, st);
|
||||
w.End();
|
||||
}
|
||||
}
|
||||
x += cw;
|
||||
if(vertgrid)
|
||||
w.DrawRect(x - 1, r.top, 1, r.Height(), gridcolor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue