choice shoudl not be truncated in this case since there isn't a
textctrl in this case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27331
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
: wxTextCtrl( cb , 1 )
{
m_cb = cb;
+
+ // remove the default minsize, the combobox will have one instead
+ SetSizeHints(-1,-1);
}
protected:
: wxChoice( cb , 1 )
{
m_cb = cb;
+
+ // remove the default minsize, the combobox will have one instead
+ SetSizeHints(-1,-1);
}
protected:
virtual wxSize DoGetBestSize() const
{
wxSize sz = wxChoice::DoGetBestSize() ;
- sz.x = POPUPWIDTH ;
+ if (! m_cb->HasFlag(wxCB_READONLY) )
+ sz.x = POPUPWIDTH;
return sz ;
}