can an adjustment use step increment < 1?



Hi,
I am trying to use an adjustment (and the SpinButton and VScale and so on) to use fractions, i.e. 0.5 or 0.1 as increments instead of 1. To get started I compiled the example given in the GTK+ 2.0 tutorial chapter 9.5.
Looking at the code (around line 109)

    adj1 = gtk_adjustment_new (0.0, 0.0, 101.0, 0.1, 1.0, 1.0);

it suggest that a step_increment of 0.1 is used.
However when I run the program I can only increment in steps of 1.0.
I am using GTK+ for Win32 version 2.2.1 as provided on Tor's site.

Has anybody successfully used a adjustment with a step increment < 1?

Thank you,
Jan
--
-----------------------------------------------------------------
    _/_/_/ _/  _/        Jan Boehm  Dipl.-Inform. M.Sc.
   _/_/_/    _/   _/_/   Institut fuer Photogrammetrie
  _/_/_/ _/ _/_/ _/ _/   Universitaet Stuttgart
 _/_/_/ _/ _/   _/_/     Geschwister-Scholl-Str. 24
          _/   _/        D-70174 Stuttgart
-----------------------------------------------------------------
Tel : +49-711-121-4110   Email : jan boehm ifp uni-stuttgart de
Fax : +49-711-121-3297   WWW   : www.ifp.uni-stuttgart.de
-----------------------------------------------------------------





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