1. wxListBox horz scrollbar fixes: now disappears when items are deleted

2. wxListBox quick searching on key press implemented


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-10-19 01:36:49 +00:00
parent 3b56ef075a
commit e2f369c206
4 changed files with 65 additions and 17 deletions

View File

@@ -175,6 +175,7 @@ protected:
void Init();
// event handlers
void OnChar(wxKeyEvent& event);
void OnIdle(wxIdleEvent& event);
void OnSize(wxSizeEvent& event);
@@ -201,6 +202,9 @@ protected:
virtual void DoDrawRange(wxControlRenderer *renderer,
int itemFirst, int itemLast);
// mark horz scrollbar for updating
void RefreshHorzScrollbar();
// update (show/hide/adjust) the scrollbars
void UpdateScrollbars();
@@ -232,8 +236,9 @@ private:
// the height of one line in the listbox (all lines have the same height)
wxCoord m_lineHeight;
// the maximal width of a listbox item
// the maximal width of a listbox item and the item which has it
wxCoord m_maxWidth;
int m_maxWidthItem;
// the extents of horz and vert scrollbars
int m_scrollRangeX,