From 3b92572eb6ea66230e07dfe523174bec66840054 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 5 Dec 2020 14:43:53 +0100 Subject: [PATCH] Focus the data view control on the sample startup Previously focus stayed on the log text control, which was useless and inconvenient. --- samples/dataview/dataview.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index 98630dc39a..db9150bb15 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -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()