wxBitmapCombobox cuts text
Posted: Thu Feb 22, 2018 3:23 pm
Hi all,
with wxWidgets 3.0.3 the expanded combox has the same size and does not take care about the length of the entries. With 2.8.12 it works fine: To reproduce it change samples/widgets/bmpcombobox.cpp[line 388-40]:
m_combobox->Create(this, BitmapComboBoxPage_Combo, wxEmptyString,
// wxDefaultPosition, wxDefaultSize,
wxDefaultPosition, wxSize(44,-1),
0, NULL,
wxCB_READONLY);
#if defined(wxGENERIC_BITMAPCOMBOBOX)
// This will sure make the list look nicer when larger images are used.
m_combobox->SetPopupMaxHeight(600);
#endif
sizerRight->Add(m_combobox, 0, wxGROW | wxALL, 5);
// sizerRight->SetMinSize(150, 0);
m_sizerCombo = sizerRight; // save it to modify it later
// the 3 panes panes compose the window
sizerTop->Add(sizerLeft, 0, wxGROW | (wxALL & ~wxLEFT), 10);
sizerTop->Add(sizerMiddle, 5, wxGROW | wxALL, 10);
// sizerTop->Add(sizerRight, 4, wxGROW | (wxALL & ~wxRIGHT), 10);
sizerTop->Add(sizerRight, 0, 0, 10);
Then start widgets-BitmapCombobox demo and 'Insert image from file'.
Problem occurs only on Windows. Any suggestions?
Thank you
with wxWidgets 3.0.3 the expanded combox has the same size and does not take care about the length of the entries. With 2.8.12 it works fine: To reproduce it change samples/widgets/bmpcombobox.cpp[line 388-40]:
m_combobox->Create(this, BitmapComboBoxPage_Combo, wxEmptyString,
// wxDefaultPosition, wxDefaultSize,
wxDefaultPosition, wxSize(44,-1),
0, NULL,
wxCB_READONLY);
#if defined(wxGENERIC_BITMAPCOMBOBOX)
// This will sure make the list look nicer when larger images are used.
m_combobox->SetPopupMaxHeight(600);
#endif
sizerRight->Add(m_combobox, 0, wxGROW | wxALL, 5);
// sizerRight->SetMinSize(150, 0);
m_sizerCombo = sizerRight; // save it to modify it later
// the 3 panes panes compose the window
sizerTop->Add(sizerLeft, 0, wxGROW | (wxALL & ~wxLEFT), 10);
sizerTop->Add(sizerMiddle, 5, wxGROW | wxALL, 10);
// sizerTop->Add(sizerRight, 4, wxGROW | (wxALL & ~wxRIGHT), 10);
sizerTop->Add(sizerRight, 0, 0, 10);
Then start widgets-BitmapCombobox demo and 'Insert image from file'.
Problem occurs only on Windows. Any suggestions?
Thank you