Re: Hscale value



Marco Quezada <mquezada netwalk com> writes:

Hi!  The value can be read with

GTK_RANGE (hscale)->adjustment->value;

To detect if a user is changed the value connect to GtkAdjustment
signal value_changed:

gtk_signal_connect (GTK_OBJECT (GTK_RANGE (hscale)->adjustment)),
                    "value-changed",
                    ...);

Regards, Mikael Hallendal

Hi, I have placed a gtkhscale in my app to act as a zoom in - zoom out
scale of a map. Does anyone know how to read the current value the
hscale has? Or how to detect if it has been moved by the user?

Thanks.

--
Marco Quezada
Aerospaceo Engineero
NLX Corporation
22626 Sally Ride Dr.
Sterling, VA, 20164
mquezada nlxcorp com
703-234-2100 x1028
http://www.nlxcorp.com




_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

-- 
Mikael Hallendal                micke codefactory se
CodeFactory AB                  http://www.codefactory.se/
Office: +46 (0)8 587 583 05     Cell: +46 (0)709 718 918




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