[Glade-users] help with scale range



I am new to this mailing list, so I hope this is the right forum for this
question.

I am trying to set up a couple sliders with GtkHScale Widgets.  I need them
to have different parameters such as min, max, etc.  However, changing these
values with Glade don't seem to have any effect on my compiled application.
For example, I am trying to set one slider to accept values from 0.00 to
1.00, with a step size of 0.05.

Here is what the .glade file looks like:

<child>
   <widget class="GtkHScale" id="rawScale">
      <property agent="glademm" name-"cxx_vixibility">protected</property>
      <property name="visible">True</property>
       ...
      <property name="adjustment">0 0 1 0.05 0.05 0</property>
   </widget>
   ...
</child>

Now, here's what shows up in the glade-generated _glade.cc file:

Gtk::Adjustment *rawScale_adj = Gtk::manage(new class Gtk::Adjustment(0, 0,
100, 1, 10, 10));
rawScale = Gtk::manage(new class Gtk::HScale(*rawScale_adj));

No matter what values I use for any of the sliders, the Adjustment always
comes out as (0, 0, 100, 1, 10, 10), which displays from 0 to 90.  How
should I set up my sliders to get them to different parameters?

As I said before, I hope this is the right place to ask the question.
Thanks for any help you can give me.

Mike





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