[Glade-users] How to print the value set by the user in a Horizontal Scale?
- From: f parzefall multitest de (f parzefall multitest de)
- Subject: [Glade-users] How to print the value set by the user in a Horizontal Scale?
- Date: Thu, 23 Aug 2001 07:29:12 +0200
Hi Duarte,
Can someone tell me how to print the value set by the user in a
Horizontal
Scale (like: printf("%d", ???))
The following is a little function in my current program that is called
when
the value of the hscale-widget is changed. This should work with any scale
respectively.
/*-------------------------------------------------------------------------*/
/* user has changed the hscale */
/*-------------------------------------------------------------------------*/
gboolean
on_hscale_changed (GtkWidget *widget,
GdkEventButton *event,
gpointer user_data)
{
GtkHScale *hscale;
gfloat hscale_value;
hscale = (GtkHScale*)lookup_widget (widget, "contrast_up_hscale");
hscale_value = hscale->scale.range.adjustment->value;
return FALSE;
}
Hope this helps,
Franz
------------------------------------------------------------------
Franz Parzefall
Vision Systems
Multitest elektronische Systeme GmbH & Co. KG
Aeussere Oberaustr. 4
83026 Rosenheim
Germany
Tel: +49 (0)8031 406 473
Fax: +49 (0)8031 406 420
Email: f parzefall multitest de
Web: www.multitest.de
------------------------------------------------------------------
Duarte Duque <duarte_duque mail pt>
Gesendet von: glade-users-admin ximian com
22.08.01 14:47
Bitte antworten an Duarte Duque
An: glade-users ximian com
Kopie:
Thema: [Glade-users] How to print the value set by the user in a Horizontal
Scale?
Dear Glade Users,
Can someone tell me how to print the value set by the user in a Horizontal
Scale (like: printf("%d", ???))
What ??? use to be?
Thanks,
Duarte Duque
--
Crie o seu email gratuito no mail.pt
http://www.mail.pt
_______________________________________________
Glade-users maillist - Glade-users ximian com
http://lists.ximian.com/mailman/listinfo/glade-users
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]