void PolarConfigPanel::SetLiftFieldStepAndMax(const TCHAR *control) { WndProperty *ctl = (WndProperty *)form.FindByName(control); DataFieldFloat* df = (DataFieldFloat*)ctl->GetDataField(); switch (Units::current.vertical_speed_unit) { case unFeetPerMinute: df->SetStep(fixed_ten); df->SetMin(fixed(-2000)); break; case unKnots: df->SetStep(fixed(0.1)); df->SetMin(fixed(-20)); break; case unMeterPerSecond: df->SetStep(fixed(0.05)); df->SetMin(fixed(-10)); break; default: break; } }
void PolarConfigPanel::SetLiftFieldStepAndMax(const TCHAR *control) { WndProperty *ctl = (WndProperty *)form.FindByName(control); DataFieldFloat* df = (DataFieldFloat*)ctl->GetDataField(); switch (Units::current.vertical_speed_unit) { case Unit::FEET_PER_MINUTE: df->SetStep(fixed_ten); df->SetMin(fixed(-2000)); break; case Unit::KNOTS: df->SetStep(fixed(0.1)); df->SetMin(fixed(-20)); break; case Unit::METER_PER_SECOND: df->SetStep(fixed(0.05)); df->SetMin(fixed(-10)); break; default: break; } }