X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a236aa2058ccf3d36e9cafc20fa7375080c4be50..65751a0ee7a4cfaef9f459c29bfd67f5be6d893b:/samples/widgets/combobox.cpp?ds=sidebyside diff --git a/samples/widgets/combobox.cpp b/samples/widgets/combobox.cpp index 6518ddd09f..5916101b6e 100644 --- a/samples/widgets/combobox.cpp +++ b/samples/widgets/combobox.cpp @@ -93,6 +93,7 @@ public: ComboboxWidgetsPage(WidgetsBookCtrl *book, wxImageList *imaglist); virtual wxControl *GetWidget() const { return m_combobox; } + virtual wxTextEntryBase *GetTextEntry() const { return m_combobox; } virtual wxItemContainer* GetContainer() const { return m_combobox; } virtual void RecreateWidget() { CreateCombo(); } @@ -428,7 +429,7 @@ void ComboboxWidgetsPage::CreateCombo() m_combobox->Append(items[n]); } - m_sizerCombo->Add(m_combobox, 1, wxGROW | wxALL, 5); + m_sizerCombo->Add(m_combobox, 0, wxGROW | wxALL, 5); m_sizerCombo->Layout(); }