mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: ArrayCtrl::SetLineColor
git-svn-id: svn://ultimatepp.org/upp/trunk@10549 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ae625d2eed
commit
567f5d09ac
3 changed files with 16 additions and 1 deletions
|
|
@ -631,6 +631,11 @@ void ArrayCtrl::SetLineCy(int i, int cy)
|
|||
}
|
||||
}
|
||||
|
||||
void ArrayCtrl::SetLineColor(int i, Color c)
|
||||
{
|
||||
array.At(i).paper = c;
|
||||
}
|
||||
|
||||
int ArrayCtrl::GetTotalCy() const
|
||||
{
|
||||
int i = GetCount();
|
||||
|
|
@ -802,6 +807,8 @@ const Display& ArrayCtrl::GetCellInfo(int i, int j, bool f0,
|
|||
bg = i & 1 ? evenpaper : oddpaper;
|
||||
if(nobg)
|
||||
bg = Null;
|
||||
if(i < array.GetCount() && !IsNull(array[i].paper))
|
||||
bg = array[i].paper;
|
||||
fg = i & 1 ? evenink : oddink;
|
||||
if((st & Display::SELECT) ||
|
||||
!multiselect && (st & Display::CURSOR) && !nocursor ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue