attaching an unknown control like wxglcanvas
Eric
Eric.Medlin at gmail.com
Tue Aug 8 13:59:41 PDT 2006
Well I know why it doesn't go to the correct spot. When I call
GetSizer() it returns NULL. Why would it loose its sizer? Here is my
contructor for Navigator.
Navigator::Navigator(wxWindow* parent) : wxGLCanvas(parent, -1,
wxDefaultPosition, wxDefaultSize),openGL(OpenGLSingleton::instance()){
wxXmlResource::Get()->AttachUnknownControl("navigator",
this);//&(wxPanel(parent)));
if(GetSizer() == NULL) std::cout<<"no sizer\n";
else std::cout<<"found a sizer\n";
SetCurrent();
openGL.init();
}
More information about the wx-users
mailing list