forked from KolibriOS/kolibrios
CMM: update list_box library
git-svn-id: svn://kolibrios.org@4073 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a26384aaa8
commit
61b200d531
@ -6,6 +6,7 @@ struct llist
|
||||
int count, visible, first, current;
|
||||
int current_temp;
|
||||
void ClearList();
|
||||
int ProcessKey(dword key);
|
||||
int KeyDown();
|
||||
int KeyUp();
|
||||
int KeyHome();
|
||||
@ -49,6 +50,18 @@ int llist::MouseScroll(dword scroll_state)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int llist::ProcessKey(dword key)
|
||||
{
|
||||
switch(key)
|
||||
{
|
||||
case 177: return KeyDown();
|
||||
case 178: return KeyUp();
|
||||
case 180: return KeyHome();
|
||||
case 181: return KeyEnd();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int llist::KeyDown()
|
||||
{
|
||||
if (current-first+1<visible)
|
||||
|
Loading…
Reference in New Issue
Block a user