Set a minimum size for MyGestureFrame

This commit is contained in:
New Pagodi
2017-12-24 18:23:13 -06:00
parent f36973875e
commit ca1b76ba49

View File

@@ -17,6 +17,10 @@ MyGestureFrame::MyGestureFrame()
sizer->Add(m_logText, wxSizerFlags().Expand()); sizer->Add(m_logText, wxSizerFlags().Expand());
SetSizer(sizer); SetSizer(sizer);
// Set a minimum size for the frame
wxSize dsplySz = wxGetDisplaySize();
SetSizeHints(wxMin(800,dsplySz.GetWidth()), wxMin(600,dsplySz.GetHeight()));
// Log to the text control // Log to the text control
delete wxLog::SetActiveTarget(new wxLogTextCtrl(m_logText)); delete wxLog::SetActiveTarget(new wxLogTextCtrl(m_logText));