- make 'enter' and 'tab' keys work again in wxMSW (wxPanel's default window

style wxTAB_TRAVERSAL is only okay if it is a member of a dialog box)
This commit is contained in:
Volker Ruppert 2012-06-29 16:30:18 +00:00
parent 04e46ee9b7
commit 523ea27b4f

View File

@ -539,7 +539,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size,
bxToolBar->Realize();
// create a MyPanel that covers the whole frame
panel = new MyPanel(this, -1);
panel = new MyPanel(this, -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER);
panel->SetBackgroundColour(wxColour(0,0,0));
panel->SetFocus();
wxGridSizer *sz = new wxGridSizer(1, 1);