}
}
-void eListbox::entryReset()
+void eListbox::entryReset(bool cursorHome)
{
m_content_changed=true;
m_prev_scrollbar_page=-1;
- if (m_content)
- m_content->cursorHome();
- m_top = 0;
- m_selected = 0;
+ if ( cursorHome )
+ {
+ if (m_content)
+ m_content->cursorHome();
+ m_top = 0;
+ m_selected = 0;
+ }
moveSelection(justCheck);
invalidate();
}
/* entryChanged: the entry with the given index was changed and should be redrawn. */
void entryChanged(int index);
/* the complete list changed. you should not attemp to keep the current index. */
- void entryReset();
+ void entryReset(bool cursorHome=true);
protected:
int event(int event, void *data=0, void *data2=0);
m_list = list;
m_size = list.size();
cursorHome();
- m_listbox->entryReset();
+ m_listbox->entryReset(false);
}
//////////////////////////////////////
}
if (m_listbox)
- m_listbox->entryReset();
+ m_listbox->entryReset(false);
}
PyObject *eListboxPythonStringContent::getCurrentSelection()