Code: Select all
PanelPopUp::PanelPopUp(wxWindow *window):wxPanel(window)
{
this->SetSize(500,500);
wxStaticText* st = new wxStaticText(this, wxID_ANY, "Test");
wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
sizer->Add(st, 1, wxEXPAND);
SetSizer(sizer);
}
I can now see the word 'Test' when I type.
Is that what happens for you? If so, please explain why you think you have a problem. If not, please give a full description of your setup e.g. your desktop environment, distro and version.
In your real code you said you use wxMiniFrame. That is a much better choice than wxPanel, which is not a proper top-level window. Perhaps you should have used a wxMiniFrame in the code you attached...