attaching an unknown control like wxglcanvas
Eric
Eric.Medlin at gmail.com
Wed Aug 9 09:14:27 PDT 2006
It doesn't not have to be wxglcanvas control. The following code also
places the control in this case a button in the top left hand corner
over other controls. It is clearly not suppose to be there based on
what XRCed is showing me, and I do get a pink box where the contol
should be when I don't call AttachUnknonwControl. How do I make my
unknown control obey the sizers it is suppose to be in based on the xrc
file?
MainFrame::MainFrame(){
wxXmlResource::Get()->LoadFrame(this, NULL, "mainFrame");
SetMenuBar(wxXmlResource::Get()->LoadMenuBar("mainMenu"));
wxButton* navigator;
navigator = new wxButton(this, -1);
wxXmlResource::Get()->AttachUnknownControl("navigator",
navigator);
}
More information about the wx-users
mailing list