Exemplo n.º 1
0
        public EqualizerBandScale(uint band, int median, int min, int max, string labelText)
        {
            this.band = band;

            label = new Label ();
            label.Markup = String.Format ("<small>{0}</small>", GLib.Markup.EscapeText (labelText));
            label.Xalign = 0.0f;
            label.Yalign = 1.0f;
            label.Angle = 90.0;

            // new Adjustment (value, lower, upper, step_incr, page_incr, page_size);
            scale = new VScale (new Adjustment (median, min, max, max / 10, max / 10, 1));
            scale.DrawValue = false;
            scale.Inverted = true;
            scale.ValueChanged += OnValueChanged;

            scale.Show ();
            label.Show ();

            PackStart (scale, false, false, 0);
            PackStart (label, false, false, 0);
        }
Exemplo n.º 2
0
 public override void Initialize()
 {
     Widget = (Gtk.Scale) CreateWidget ();
     Widget.DrawValue = false;
     Widget.Show ();
 }