Set major dim after the items have been created

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-11-30 16:33:43 +00:00
parent b47f1f95f3
commit f3984afa30

View File

@@ -147,9 +147,6 @@ bool wxRadioBox::Create(wxWindow *parent,
const wxValidator& val, const wxValidator& val,
const wxString& name) const wxString& name)
{ {
// initialize members
SetMajorDim(majorDim == 0 ? n : majorDim, style);
// common initialization // common initialization
if ( !wxStaticBox::Create(parent, id, title, pos, size, style, name) ) if ( !wxStaticBox::Create(parent, id, title, pos, size, style, name) )
return false; return false;
@@ -211,6 +208,7 @@ bool wxRadioBox::Create(wxWindow *parent,
SetWindowPos(GetHwnd(), HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE); SetWindowPos(GetHwnd(), HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
#endif #endif
SetMajorDim(majorDim == 0 ? n : majorDim, style);
SetSelection(0); SetSelection(0);
SetSize(pos.x, pos.y, size.x, size.y); SetSize(pos.x, pos.y, size.x, size.y);