[Glade-users] Radio buttons

Dale Dale <bigperm71@gmail.com>
Thu, 18 Nov 2004 17:14:10 -0500


Ian...

I think the Gtk2::ToggleButton documentation may have what you're looking for:

http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/ToggleButton.html#_toggle_button_set_a

The code would be something like this:
$toggle_button->set_active (1) 

It just occurred to me you may not be using Perl.

Here's the C link:

http://developer.gnome.org/doc/API/2.0/gtk/GtkToggleButton.html#gtk-toggle-button-set-active

One thing I've learned with this online DOC is that it's good to look
at the hierarchy; if the method you're looking for isn't there, it may
be in a parent class.

Dale


On Thu, 18 Nov 2004 10:36:45 -0700 (MST), Ian Strascina
<istrasci@cs.nmsu.edu> wrote:
> 
> When designing a UI with radio buttons (in the same group), how can you
> specify which button is supposed to be the default selected button...???
> I couldn't find this anywhere in documentation...  Thanks in advance...
> 
>         - Ian
> 
> -------------------------------------------------------------------------------
> "Mostly, when you see programmers, they aren't doing anything...
>   One of the attractive things about programmers is that you cannot tell
>   whether or not they are working simply by looking at them...  Very often
>   they're sitting there seemingly drinking coffee and gossiping, or just
>   staring into space...  What the programmer is trying to do is get a handle
>   on all the individual and unrelated ideas that are scampering around in
>   his head..."  -- Charles M. Strauss
> -------------------------------------------------------------------------------
> _______________________________________________
> Glade-users maillist  -  Glade-users@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
> 


-- 
Big Perm
bigperm71@gmail.com