Re: Labels In Radio Buttons



Hi Darren

I have given it a go and I get the following error:

struct _GtkToggleButton has no member named label

I will have a look in the .h file for it and see what members it does have I
might be able to find it there.

Thanks

Ian
----- Original Message -----
From: "darren adams" <scottish-lad freeuk com>
To: "Ian Frawley" <ifrawley opaltelecom co uk>
Cc: <gtk-app-devel-list gnome org>
Sent: Friday, October 19, 2001 11:01 AM
Subject: Re: Labels In Radio Buttons



----- Original Message -----
From: "Ian Frawley" <ifrawley opaltelecom co uk>
To: <gtk-app-devel-list gnome org>
Sent: Friday, October 19, 2001 10:16 AM
Subject: Labels In Radio Buttons


Hi All

Does anyone know how to get the values stored within a radio buttons
label?
[...]


I dunno whether this works or not (I'm at work, on a Windows machine), but
what you might need is code similar to the following:

GtkWidget *radio_button;
gchar *radio_button_label_text;

...

radio_button = gtk_radio_button_new_with_label(NULL, "This is my text");
radio_button_label_text = GTK_TOGGLE_BUTTON(radio_button)->label;

Give it a bash. It may well work...

Ta,

 - darren







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