Resize IP list dialog.
This commit is contained in:
parent
a2330e77c2
commit
9ee6839017
1 changed files with 3 additions and 3 deletions
|
@ -239,15 +239,15 @@ IPListDialog::IPListDialog(wxWindow* parent, const wxString& hostname, const std
|
||||||
, m_selected_index (selected_index)
|
, m_selected_index (selected_index)
|
||||||
{
|
{
|
||||||
const int em = GUI::wxGetApp().em_unit();
|
const int em = GUI::wxGetApp().em_unit();
|
||||||
m_list->SetMinSize(wxSize(20 * em, 30 * em));
|
m_list->SetMinSize(wxSize(40 * em, 30 * em));
|
||||||
|
|
||||||
wxBoxSizer* vsizer = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* vsizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
auto* label = new wxStaticText(this, wxID_ANY, GUI::format_wxstr(_L("There are several IP addresses resolving to hostname %1%.\n Please select one that should be used."), hostname));
|
auto* label = new wxStaticText(this, wxID_ANY, GUI::format_wxstr(_L("There are several IP addresses resolving to hostname %1%.\nPlease select one that should be used."), hostname));
|
||||||
vsizer->Add(label, 0, wxEXPAND | wxTOP | wxLEFT | wxRIGHT, em);
|
vsizer->Add(label, 0, wxEXPAND | wxTOP | wxLEFT | wxRIGHT, em);
|
||||||
|
|
||||||
m_list->SetSingleStyle(wxLC_SINGLE_SEL);
|
m_list->SetSingleStyle(wxLC_SINGLE_SEL);
|
||||||
m_list->AppendColumn(_(L("Address")), wxLIST_FORMAT_LEFT, 20 * em);
|
m_list->AppendColumn(_(L("Address")), wxLIST_FORMAT_LEFT, 40 * em);
|
||||||
|
|
||||||
for (size_t i = 0; i < ips.size(); i++)
|
for (size_t i = 0; i < ips.size(); i++)
|
||||||
auto item = m_list->InsertItem(i, boost::nowide::widen(ips[i].to_string()));
|
auto item = m_list->InsertItem(i, boost::nowide::widen(ips[i].to_string()));
|
||||||
|
|
Loading…
Reference in a new issue