Rasmus I made pagesize be zero like you suggested and it fixed problem with max value. Thank you very much. With zero pagesize I can still drag slider, but, I cannot make it *jump* by clicking to right or left of it anymore. I lost this feature when I zeroed the page size.
Scrollbars are nice because they have those arrows on the sides. Scales are nice because values appears above the widget. Is there a widget that has arrows to sides AND value appearing above widget so I can fix this bug and get everything I want all in the same widget??? (Scrollbar + scale = ???) Thanks, Chris On Wed, Mar 13, 2002 at 02:31:43PM +0100, Rasmus Hahn wrote: > On Tue, Mar 12, 2002 at 01:43:35PM -0800, Christian Seberino wrote: > > 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)); > > Try to set the pagesize of the adjustment to 0. It seems the slider > tries to fit a 'page' in the range [min...max], like it is needed for > scrollbars, but not so useful for scales without a 'page'. So > gtk_adjustment_new (0, 0, 1000, 1, 1, 0) should make the slider value > get the whole range. > > > > > I could not move slider farther to right then 2047. > > > > Chris > > > > > > On Tue, Mar 12, 2002 at 04:00:41PM -0500, [EMAIL PROTECTED] wrote: > > > On Tue, 12 Mar 2002 12:58:16 PST, Christian Seberino <[EMAIL PROTECTED]> >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 || [EMAIL PROTECTED] | > > ======================================================= > > _______________________________________________ > > gtk-list mailing list > > [EMAIL PROTECTED] > > http://mail.gnome.org/mailman/listinfo/gtk-list > _______________________________________________ > gtk-list mailing list > [EMAIL PROTECTED] > http://mail.gnome.org/mailman/listinfo/gtk-list -- ======================================================= | Dr. Christian Seberino || (619) 553-7940 (office) | | SPAWARSYSCEN 2363 || (619) 553-2836 (fax) | | 53560 HULL ST || | | SAN DIEGO CA 92152-5001 || [EMAIL PROTECTED] | ======================================================= _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list