- add_label_to_sizer (table, this, _("Host name or IP address"), true);
- _host = new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, size);
- table->Add (_host, 1, wxEXPAND | wxALL);
-
- add_label_to_sizer (table, this, _("Threads to use"), true);
- _threads = new wxSpinCtrl (this, wxID_ANY);
- table->Add (_threads, 1, wxEXPAND);
-
- _threads->SetRange (0, 256);
+ add (_("Host name or IP address"), true);
+ _host = add (new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, size));