/// <summary> /// Initializes a new instance of the <see cref="Check"/> class. /// </summary> /// <param name="parent">Parent control.</param> public Number(Control.Base parent) : base(parent) { m_NumericUpDown = new Control.NumericUpDown(this); m_NumericUpDown.ValueChanged += OnValueChanged; m_NumericUpDown.ShouldDrawBackground = false; m_NumericUpDown.Dock = Pos.Fill; }
public NumericUpDown(Base parent) : base(parent) { Control.NumericUpDown ctrl = new Control.NumericUpDown(this); ctrl.SetBounds(10, 10, 50, 20); ctrl.Value = 50; ctrl.Max = 100; ctrl.Min = -100; ctrl.ValueChanged += OnValueChanged; }
public NumericUpDown(ControlBase parent) : base(parent) { Control.NumericUpDown ctrl = new Control.NumericUpDown(this); ctrl.SetBounds(10, 10, 50, 20); ctrl.Value = 50; ctrl.Max = 100; ctrl.Min = -100; ctrl.ValueChanged += OnValueChanged; }
public NumericUpDown(ControlBase parent) : base(parent) { VerticalLayout layout = new VerticalLayout(this); Control.NumericUpDown ctrl = new Control.NumericUpDown(layout); ctrl.Margin = Margin.Five; ctrl.Width = 70; ctrl.Value = 50; ctrl.Max = 100; ctrl.Min = -100; ctrl.ValueChanged += OnValueChanged; ctrl = new Control.NumericUpDown(layout); ctrl.Margin = Margin.Five; ctrl.Width = 70; ctrl.Value = 50; ctrl.Max = 100; ctrl.Min = -100; ctrl.Step = 5; ctrl.ValueChanged += OnValueChanged; ctrl = new Control.NumericUpDown(layout); ctrl.Margin = Margin.Five; ctrl.Width = 70; ctrl.Value = 50; ctrl.Max = 100; ctrl.Min = -100; ctrl.Step = 0.1f; ctrl.ValueChanged += OnValueChanged; ctrl = new Control.NumericUpDown(layout); ctrl.Margin = Margin.Five; ctrl.Width = 70; ctrl.Max = Single.MaxValue; ctrl.Min = 0; ctrl.Step = 1f; ctrl.ValueChanged += OnValueChanged; }
void parallelCheckToleranceNumUD_ValueChanged(Control.NumericUpDown m, double NewValue) { RealMeta.ParallelTollerance = NewValue; }