Make GUI DPI-aware
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
wxEapHostMethodConfigPanelBase::wxEapHostMethodConfigPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
|
||||
wxEapHostMethodConfigPanelBase::wxEapHostMethodConfigPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, long style ) : wxPanel( parent, id, pos, parent->FromDIP(wxSize( 500,-1 )), style )
|
||||
{
|
||||
wxStaticBoxSizer* sb_method;
|
||||
sb_method = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Inner EAP Method") ), wxVERTICAL );
|
||||
@@ -20,14 +20,14 @@ wxEapHostMethodConfigPanelBase::wxEapHostMethodConfigPanelBase( wxWindow* parent
|
||||
sb_method_horiz = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
m_method_icon = new wxStaticBitmap( sb_method->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
|
||||
sb_method_horiz->Add( m_method_icon, 0, wxALL, 5 );
|
||||
sb_method_horiz->Add( m_method_icon, 0, wxALL, FromDIP(5) );
|
||||
|
||||
wxBoxSizer* sb_method_vert;
|
||||
sb_method_vert = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
m_method_label = new wxStaticText( sb_method->GetStaticBox(), wxID_ANY, _("Select and configure inner EAP method"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_method_label->Wrap( 440 );
|
||||
sb_method_vert->Add( m_method_label, 0, wxALL|wxEXPAND, 5 );
|
||||
m_method_label->Wrap( FromDIP(440) );
|
||||
sb_method_vert->Add( m_method_label, 0, wxALL|wxEXPAND, FromDIP(5) );
|
||||
|
||||
wxBoxSizer* sb_method_inner;
|
||||
sb_method_inner = new wxBoxSizer( wxHORIZONTAL );
|
||||
@@ -35,19 +35,19 @@ wxEapHostMethodConfigPanelBase::wxEapHostMethodConfigPanelBase( wxWindow* parent
|
||||
wxArrayString m_methodChoices;
|
||||
m_method = new wxChoice( sb_method->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_methodChoices, 0 );
|
||||
m_method->SetSelection( 0 );
|
||||
sb_method_inner->Add( m_method, 1, wxRIGHT|wxEXPAND, 5 );
|
||||
sb_method_inner->Add( m_method, 1, wxRIGHT|wxEXPAND, FromDIP(5) );
|
||||
|
||||
m_settings = new wxButton( sb_method->GetStaticBox(), wxID_ANY, _("&Settings"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
sb_method_inner->Add( m_settings, 0, 0, 5 );
|
||||
sb_method_inner->Add( m_settings, 0, 0, FromDIP(5) );
|
||||
|
||||
|
||||
sb_method_vert->Add( sb_method_inner, 0, wxEXPAND|wxALL, 5 );
|
||||
sb_method_vert->Add( sb_method_inner, 0, wxEXPAND|wxALL, FromDIP(5) );
|
||||
|
||||
|
||||
sb_method_horiz->Add( sb_method_vert, 1, wxEXPAND, 5 );
|
||||
sb_method_horiz->Add( sb_method_vert, 1, wxEXPAND, FromDIP(5) );
|
||||
|
||||
|
||||
sb_method->Add( sb_method_horiz, 1, wxEXPAND, 5 );
|
||||
sb_method->Add( sb_method_horiz, 1, wxEXPAND, FromDIP(5) );
|
||||
|
||||
|
||||
this->SetSizer( sb_method );
|
||||
|
@@ -49,7 +49,7 @@ class wxEapHostMethodConfigPanelBase : public wxPanel
|
||||
|
||||
public:
|
||||
|
||||
wxEapHostMethodConfigPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL );
|
||||
wxEapHostMethodConfigPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, long style = wxTAB_TRAVERSAL );
|
||||
~wxEapHostMethodConfigPanelBase();
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user