Initial/Best size fixes for wxRadioBox, wxSlider and wxStaticText on wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -346,9 +346,11 @@ bool wxRadioBox::Create(wxWindow *parent,
|
||||
(HMENU)NewControlId(), wxGetInstance(), NULL);
|
||||
|
||||
SetSelection(0);
|
||||
|
||||
SetSize(pos.x, pos.y, size.x, size.y);
|
||||
|
||||
// Now that we have items determine what is the best size and set it.
|
||||
SetBestSize(size);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user