| 240 | } |
| 241 | |
| 242 | void CreateControls(int id, ShuttleGui &S) const |
| 243 | { |
| 244 | wxTextCtrl *const text = S.Id(id + 1) |
| 245 | .Validator<FloatingPointValidator<double>>( |
| 246 | formatAsInt ? 0 : 2, |
| 247 | nullptr, |
| 248 | NumValidatorStyle::DEFAULT, |
| 249 | valueMin, valueMax |
| 250 | ) |
| 251 | .AddTextBox(textBoxCaption, wxT(""), 0); |
| 252 | |
| 253 | wxSlider *const slider = |
| 254 | S.Id(id) |
| 255 | .Name( sliderName ) |
| 256 | .Style(wxSL_HORIZONTAL) |
| 257 | .MinSize( { 150, -1 } ) |
| 258 | .AddSlider( {}, 0, sliderMax); |
| 259 | } |
| 260 | |
| 261 | MemberPointer field; |
| 262 | double valueMin; |
no test coverage detected