Page up and page down keys don't behave like man expect. Maybe you could put something like following in wxTreeListMainWindow::OnChar function:
Code: Select all
// I don't know why is WXK_PAGEDOWN 359
case 313: {
// show on top selected item
wxTreeItemId item = m_curItem;
ShowOnTop(m_curItem);
// find last visible item
while (item.IsOk() && IsVisible(item, false))
{
item = GetNext(item, false);
}
newItem = GetPrev(item);
}break;
// PAGE UP
case 312: {
// show in bottom selected item
wxTreeItemId item = m_curItem;
ShowOnBottom(m_curItem);
// find last visible item
while (item.IsOk() && IsVisible(item, false))
{
item = GetPrev(item, false);
}
newItem = GetNext(item);
}break;
My solution has also bug because it don't know how to handle first and last item and it has some refreshing issues when the button is holded. I'm too tired to fix it now.
all the best,
Damir[/code]