Focus the data view control on the sample startup
Previously focus stayed on the log text control, which was useless and inconvenient.
This commit is contained in:
@@ -742,6 +742,9 @@ MyFrame::MyFrame(wxFrame *frame, const wxString &title, int x, int y, int w, int
|
||||
mainSizer->Add( m_log, 0, wxGROW );
|
||||
|
||||
SetSizerAndFit(mainSizer);
|
||||
|
||||
// Allow using the control from keyboard on startup.
|
||||
m_ctrl[Page_Music]->SetFocus();
|
||||
}
|
||||
|
||||
MyFrame::~MyFrame()
|
||||
|
Reference in New Issue
Block a user