Beispiel #1
0
        private void OnFormatRangeSliderValue(object sender,
                                              FormatValueArgs args)
        {
            ShowCompletedRange range = (ShowCompletedRange)args.Value;

            args.RetVal = GetTranslatedRangeValue(range);
        }
Beispiel #2
0
        void Scale_FormatValue(object o, FormatValueArgs args)
        {
            var idx = GetPropertyIndex(o as Widget);

            if (idx >= 0 && properties[idx].sliderFormat != null)
            {
                args.RetVal = string.Format(properties[idx].sliderFormat, args.Value);
            }
        }
Beispiel #3
0
        static void reformat_value(object o, FormatValueArgs args)
        {
            int x = (int)args.Value;

            args.RetVal = x.ToString();
        }
Beispiel #4
0
 protected void OnHscale1FormatValue(object o, FormatValueArgs args)
 {
     Console.WriteLine(this.hscale1.Value);
 }
Beispiel #5
0
 void HandleScaleFormatValue(object o, FormatValueArgs args)
 {
     args.RetVal = FormatValue(scale.Value);
 }