]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/gizmos/editlbox.cpp
test for wxLog interaction with wxYield better
[wxWidgets.git] / contrib / src / gizmos / editlbox.cpp
index 52a53a9fb08256b8a50141501c7bf55b3527098a..5f3b77a2f0095ff25aa1141b30a392a9f97e5d7f 100644 (file)
@@ -134,7 +134,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 +143,7 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id,
 
     SetAutoLayout(TRUE);
     SetSizer(sizer);
+       Layout();
 }
 
 void wxEditableListBox::SetStrings(const wxArrayString& strings)