Re: [gtk-list] Howto make non-standard slider?
- From: Damon Chaplin <damon karuna freeserve co uk>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Howto make non-standard slider?
- Date: Wed, 31 Mar 1999 15:58:53 +0100
"David J. Topper" wrote:
>
> Hey folks,
>
> I need to make a slider that doesn't go up by normal base-10 digits,
> instead more like:
>
> 7.00
> 7.01
> ...
> 7.09
> 7.10
> 7.11
> 7.12
> 8.00
> 8.01
> ...
> and so on ...
>
> Is there an easy way to set this up? I guess a slider that can go up in
> value like a clock would be analagous (eg., 12:59, 1:00, etc...).
I don't think there's an easy way to do this.
You may have to subclass GtkVScale or GtkHScale and override a few functions,
including the function to draw the value.
I'd use a continuous scale, say 0-100, and then to display it convert it to
your 'base', e.g. 0-12 -> 0.00-0.12, 13-25 -> 1.00-1.12 etc.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]