MSVC fixes for wxEditableListBox (still misteriously gives assertion failure when calling wxListCtrl::EditLabel)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -134,7 +134,8 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id,
|
|||||||
m_listCtrl = new CleverListCtrl(this, wxID_ELD_LISTCTRL,
|
m_listCtrl = new CleverListCtrl(this, wxID_ELD_LISTCTRL,
|
||||||
wxDefaultPosition, wxDefaultSize,
|
wxDefaultPosition, wxDefaultSize,
|
||||||
wxLC_REPORT | wxLC_NO_HEADER |
|
wxLC_REPORT | wxLC_NO_HEADER |
|
||||||
wxLC_SINGLE_SEL | wxSUNKEN_BORDER);
|
wxLC_SINGLE_SEL | wxSUNKEN_BORDER |
|
||||||
|
wxLC_EDIT_LABELS);
|
||||||
wxArrayString empty_ar;
|
wxArrayString empty_ar;
|
||||||
SetStrings(empty_ar);
|
SetStrings(empty_ar);
|
||||||
|
|
||||||
@@ -142,6 +143,7 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id,
|
|||||||
|
|
||||||
SetAutoLayout(TRUE);
|
SetAutoLayout(TRUE);
|
||||||
SetSizer(sizer);
|
SetSizer(sizer);
|
||||||
|
Layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxEditableListBox::SetStrings(const wxArrayString& strings)
|
void wxEditableListBox::SetStrings(const wxArrayString& strings)
|
||||||
|
Reference in New Issue
Block a user