- 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:
parent
04e46ee9b7
commit
523ea27b4f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user