Re: [gtk-list] Re: "Endpoint" behavior of GtkVScale
- From: Jeremy Weatherford <xidus xidus net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: "Endpoint" behavior of GtkVScale
- Date: Wed, 26 Jan 2000 14:37:56 -0800 (PST)
I'm using
main_adj = gtk_adjustment_new(100,0,100,1,10,0);
That appears to be:
value = 100
lower = 0
upper = 100
step_increment = 1
page_increment = 10
page_size = 0
The scrollbar is less than 100 pixels in length, if that makes a
difference.
Jeremy Weatherford
xidus@xidus.net
http://xidus.net/
On 26 Jan 2000, Owen Taylor wrote:
>
> Jeremy Weatherford <xidus@xidus.net> writes:
>
> > Hello,
> >
> > I recently started using GTK, and have since built a mostly-complete
> > application with it quite easily. I'm very happy with it, and I hope to
> > be able to contribute back to the project through documentation, if not
> > code.
> >
> > I have some doubts about whether GtkVScale is working as well as it could
> > be at the moment, though. When the 'thumb' is dragged all the way to the
> > top, the Adjustment reads the maximum (or minimum) value. When it's
> > dragged all the way to the bottom, though, the Adjustment often does not
> > reach its minimum (or maximum) value. I understand that this is because
> > of rounding, but I'm not sure this is the best behavior.
> >
> > Especially when the scale is used to represent a value, the user
> > frequently (depending on the exact size and range of the scale and
> > and adjustment) cannot select the minimum value. In my case, this is
> > especially problematic since I have a GtkVScale being used as a volume
> > control. At the top, it reads 0, but at the bottom it'll read 98 or
> > something similar, meaning in my case that a given channel can't have its
> > volume turned all the way off.
>
> The range of a range (scale/scrollbar) widget is
>
> lower <= value <= upper - page_size
>
> This is what you expect for a scrollbar, but perhaps a bit suprising
> for a scale; try setting the page_size for the scale to zero.
>
> Regards,
> Owen
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]