public SliderHandler() { Control = new EtoSlider { Handler = this }; Control.Activated += HandleActivated; MinValue = 0; MaxValue = 100; }
public ProgressBarHandler() { Control = new EtoSlider { Handler = this, Indeterminate = false }; MinValue = 0; MaxValue = 100; }
public SliderHandler() { Control = new EtoSlider { Handler = this }; Control.Activated += delegate { if (Control.DoubleValue != (double)Control.IntValue) { Control.IntValue = (int)Math.Round(Control.DoubleValue); } Widget.OnValueChanged(EventArgs.Empty); }; MinValue = 0; MaxValue = 100; }