Re: Scrollbars upside down



Mark

The easiest way I can think of is to use the scrollbar and adjustment the
right way round and do a quick
y = (100 - x) calc in the callback. Takes an extra couple of CPU cycles, but
who really cares about that these
days.

Bruce Smith
(developer, designer, irritator)

----- Original Message -----
From: "Mark Roberts" <gtk manumark de>
To: <gtk-list gnome org>
Sent: Friday, March 16, 2001 5:35 PM
Subject: Scrollbars upside down


> Dear Folks!
>
> Using
>
> adjustment = gtk_adjustment_new (0.0, 0.0, 100.0, 0.1, 3.0, 1.0);
> scale = gtk_vscale_new (GTK_ADJUSTMENT (adjustment));
>
> I get a vertical scale with zero being the value when the slider is at the
> top and 100 being the value at the bottom. How do I swap these, so that I
> can, say, turn the volume _down_ to zero? Simply typing
>
> adjustment = gtk_adjustment_new (0.0, 100.0, 0.0, 0.1, 3.0, 1.0);
>
> doesn't work. I bet it's obvious when pointed out. :)
>
> Thank you for your help,
>
> Mark Roberts
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]