GridCtrl: Added getting previous cursor position

git-svn-id: svn://ultimatepp.org/upp/trunk@5186 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
unodgs 2012-07-14 06:05:10 +00:00
parent ebe090e53d
commit 75de535346
4 changed files with 26 additions and 0 deletions

View file

@ -717,6 +717,18 @@ Value DropGrid::Get(int r, Id id) const
return list.Get(r, id);
}
Value DropGrid::GetPrev(int c) const
{
int r = list.GetPrevCursor();
return r >= 0 ? Get(r, c) : Null;
}
Value DropGrid::GetPrev(Id id) const
{
int r = list.GetPrevCursor();
return r >= 0 ? Get(r, id) : Null;
}
void DropGrid::Set(int c, const Value& v)
{
list.Set(c, v);