Use the GetCheck and the SetCheck methods.
For example, after you have created the radio button use:
$w_main_cu->Rb_option2->SetCheck(1); #1 to set 0 to clear
in the click event use:
#I want to get here what option was selected. (Selected RadioButton)
>From: Daniel Mazzini
>Subject: [perl-win32-gui-users] Radio Buttons Question - Win32::Gui
>Date: Tue, 15 Feb 2005 08:02:49 -0800 (PST)
>I have two questions:
>1. I am trying "to check" a radio button as initial state, I mean when I
>open a window. I used the option -checked=>1, but nothing happens.
>2. I want to get the the radio_button selected.
>I have been programming with perl for the last two years, I used Tk in the
>past, but I want to learn about WIN32::Gui.
Desk +1 972-374-0081 / Mobile +1 2142088109
Email : email@example.comfirstname.lastname@example.org