Re: Max value set for slider is not actual max value in use.
- From: Christian Seberino <seberino spawar navy mil>
- To: Valdis Kletnieks vt edu
- Cc: gtk-list gnome org
- Subject: Re: Max value set for slider is not actual max value in use.
- Date: Tue, 12 Mar 2002 13:43:35 -0800
Your suggestion makes perfect sense to me. It seems like that
*must* be what is wrong. Yet I checked my code and can't see it....
#define INI_N_MASSES 1
#define MIN_N_MASSES 1
#define MAX_N_MASSES 2048
#define INC_N_MASSES 1
...
numberOfMassesSliderAdj = GTK_OBJECT(gtk_adjustment_new(
INI_N_MASSES, MIN_N_MASSES, MAX_N_MASSES, INC_N_MASSES,
INC_N_MASSES, INC_N_MASSES));
I could not move slider farther to right then 2047.
Chris
On Tue, Mar 12, 2002 at 04:00:41PM -0500, Valdis Kletnieks vt edu wrote:
> On Tue, 12 Mar 2002 12:58:16 PST, Christian Seberino <seberino spawar navy mil> said:
> > If I make a slider for a value that goes from
> > 0 to 2000, then leftmost value is 0
> > *BUT*, rightmost value is 1999!!!
> >
> > Why do I lose the last number?
>
> Sounds like a fencepost error to me. Is it "min 0 max 2000", or "min 0
> steps 2000"? 0..1999 is 2000 points.
> --
> Valdis Kletnieks
> Computer Systems Senior Engineer
> Virginia Tech
>
--
=======================================================
| Dr. Christian Seberino || (619) 553-7940 (office) |
| SPAWARSYSCEN 2363 || (619) 553-2836 (fax) |
| 53560 HULL ST || |
| SAN DIEGO CA 92152-5001 || seberino spawar navy mil |
=======================================================
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]