mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-24 06:12:52 -06:00
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:
parent
ebe090e53d
commit
75de535346
4 changed files with 26 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue