The Dialog is layouted pretty good, so the combobox has the right size.
Now, the combobox shows values from the program, and if they are "longer" then the combobox width, the combobox expands, and breaks the whole layout.
I thought, fine, call SetMaxSize and you're done, but it does not work:
Code: Select all
cbb_filename = new wxComboBox(this, ID_COMBOBOX2, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, 0, 0, wxDefaultValidator, _T("ID_COMBOBOX2"));
cbb_filename->SetMaxSize(wxSize(130,-1));
So, how can I make this combobox always stay the same size?
phlox