Make GUI DPI-aware

This commit is contained in:
2018-09-17 11:43:19 +02:00
parent dd0bceafdc
commit 10b321a92c
18 changed files with 192 additions and 184 deletions

View File

@@ -26,10 +26,10 @@
//////////////////////////////////////////////////////////////////////////
wxEventMonitorFrame::wxEventMonitorFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style, const wxString& name) :
wxFrame(parent, id, title, pos, size, style, name)
wxEventMonitorFrame::wxEventMonitorFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, long style, const wxString& name) :
wxFrame(parent, id, title, pos, parent->FromDIP(wxSize(600,400)), style, name)
{
this->SetSizeHints(wxSize(150,150), wxDefaultSize);
this->SetSizeHints(FromDIP(wxSize(150,150)), wxDefaultSize);
m_mgr.SetManagedWindow(this);
m_mgr.SetFlags(wxAUI_MGR_DEFAULT);