- add_label_to_grid_bag_sizer (table, this, _("Input power"), true, wxGBPosition (r, 0));
- _input_power = new wxSpinCtrlDouble (this);
- table->Add (_input_power, wxGBPosition (r, 1));
- ++r;
-
- add_label_to_grid_bag_sizer (table, this, _("Input threshold"), true, wxGBPosition (r, 0));
- _input_threshold = new wxTextCtrl (this, wxID_ANY, wxT (""));
- table->Add (_input_threshold, wxGBPosition (r, 1));
- ++r;
-
- add_label_to_grid_bag_sizer (table, this, _("Input A value"), true, wxGBPosition (r, 0));
- _input_A = new wxTextCtrl (this, wxID_ANY, wxT (""));
- table->Add (_input_A, wxGBPosition (r, 1));
+ add_label_to_sizer (table, this, _("Input power"), true, wxGBPosition (r, 0));
+ {
+ wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
+ _input_power = new wxSpinCtrlDouble (this);
+ s->Add (_input_power, 1, wxEXPAND | wxRIGHT, DCPOMATIC_SIZER_GAP);
+ add_label_to_sizer (s, this, _("threshold"), true);
+ _input_threshold = new wxTextCtrl (this, wxID_ANY, wxT (""));
+ s->Add (_input_threshold, 1, wxEXPAND | wxRIGHT, DCPOMATIC_SIZER_GAP);
+ add_label_to_sizer (s, this, _("A"), true);
+ _input_A = new wxTextCtrl (this, wxID_ANY, wxT (""));
+ s->Add (_input_A, 1, wxEXPAND | wxRIGHT, DCPOMATIC_SIZER_GAP);
+ add_label_to_sizer (s, this, _("B"), true);
+ _input_B = new wxTextCtrl (this, wxID_ANY, wxT (""));
+ s->Add (_input_B, 1, wxEXPAND | wxRIGHT, DCPOMATIC_SIZER_GAP);
+ table->Add (s, wxGBPosition (r, 1), wxGBSpan (1, 3));
+ }