X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7d5dd022c9555a097a14bd42dfc5d57467d0864..16d38102e8ad5534d185cc532b9aa8077a75e0a4:/contrib/src/gizmos/editlbox.cpp diff --git a/contrib/src/gizmos/editlbox.cpp b/contrib/src/gizmos/editlbox.cpp index 52a53a9fb0..b993e11a5a 100644 --- a/contrib/src/gizmos/editlbox.cpp +++ b/contrib/src/gizmos/editlbox.cpp @@ -65,6 +65,7 @@ private: void OnSize(wxSizeEvent& event) { SizeColumns(); + event.Skip(); } }; @@ -134,7 +135,8 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id, m_listCtrl = new CleverListCtrl(this, wxID_ELD_LISTCTRL, wxDefaultPosition, wxDefaultSize, wxLC_REPORT | wxLC_NO_HEADER | - wxLC_SINGLE_SEL | wxSUNKEN_BORDER); + wxLC_SINGLE_SEL | wxSUNKEN_BORDER | + wxLC_EDIT_LABELS); wxArrayString empty_ar; SetStrings(empty_ar); @@ -142,6 +144,7 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id, SetAutoLayout(TRUE); SetSizer(sizer); + Layout(); } void wxEditableListBox::SetStrings(const wxArrayString& strings)