1
Development / Re: wxSmith use bad constructor for wxStaticBoxSizer
« Last post by LR83 on Today at 06:14:31 pm »I try to find a patch to correct this.
First, we can add a temporary wxStaticBox when we add the wxStaticBoxSizer.
In the file wxsstaticboxsizer.cpp we replace in OnBuildSizerCreatingCode() function this code:
The problem now is to replace, in all constructors of the children of wxStaticBoxSizer, the parent with this temporary wxStaticBox.
I don't know how to do it right now.
First, we can add a temporary wxStaticBox when we add the wxStaticBoxSizer.
In the file wxsstaticboxsizer.cpp we replace in OnBuildSizerCreatingCode() function this code:
Quote
case wxsCPP:
{
AddHeader(_T("<wx/sizer.h>"),GetInfo().ClassName,hfInPCH);
AddHeader(_T("<wx/statbox.h>"),GetInfo().ClassName,hfInPCH);
Codef(_T("%C(%s, %W, %t);\n"),
(Orient!=wxHORIZONTAL)?_T("wxVERTICAL"):_T("wxHORIZONTAL"),
Label.wx_str());
Codef(_T("wxStaticBox *SB_%s = %s->GetStaticBox();\n"),GetVarName().wx_str(),GetVarName().wx_str());
return;
}
The problem now is to replace, in all constructors of the children of wxStaticBoxSizer, the parent with this temporary wxStaticBox.
I don't know how to do it right now.
Recent Posts