mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: ArrayCtrl::SetRowDisplay, SetColumnDisplay
git-svn-id: svn://ultimatepp.org/upp/trunk@11087 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
50bb92e17c
commit
06a3dfe7eb
3 changed files with 31 additions and 0 deletions
|
|
@ -295,6 +295,23 @@ void ArrayCtrl::SetDisplay(int i, int j, const Display& d)
|
|||
RefreshRow(i);
|
||||
}
|
||||
|
||||
void ArrayCtrl::SetRowDisplay(int i, const Display& d)
|
||||
{
|
||||
if(i >= 0 && i < GetCount())
|
||||
for (int j = 0 ; j < GetColumnCount(); j++)
|
||||
this->cellinfo.At(i).At(j).Set(d);
|
||||
RefreshRow(i);
|
||||
}
|
||||
|
||||
void ArrayCtrl::SetColumnDisplay(int j, const Display& d)
|
||||
{
|
||||
if(j >= 0 && j < GetColumnCount())
|
||||
for (int i = 0 ; i < GetCount(); i++) {
|
||||
this->cellinfo.At(i).At(j).Set(d);
|
||||
RefreshRow(i);
|
||||
}
|
||||
}
|
||||
|
||||
const Display& ArrayCtrl::GetDisplay(int i, int j)
|
||||
{
|
||||
if(i < cellinfo.GetCount() && j < cellinfo[i].GetCount() && cellinfo[i][j].IsDisplay())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue