you need to define what you want to go into the check.  right now, when you say
->Checked(), the GUI assumes that you want to set it to what you provide, ie,
nothing, or false.  if you change this to $Radio1->Checked(1) it should work.

good luck.




stanley g martin <[EMAIL PROTECTED]> on 02/19/99 06:13:17 AM

Please respond to stanley g martin <[EMAIL PROTECTED]>

To:   "Perl-Win32-Users Mailing List"
      <[EMAIL PROTECTED]>
cc:    (Sundar Raman/MW/US/3Com)
Subject:  Win32::GUI Question




I am having a small problem with a RadioButton.  The button is created
just fine, but when I go to pre-select one of them with
$Radio1->Checked(), it doesn't work.  No errors are generated but the
button does not become selected.  I can manually select it and it works
properly, but I cannot get it to start up in the selected mode.  I'm on
NT 4.0 SP4.  I was hoping there would have been an example in the
distribution, but no luck.  Here is a snippet of code.

$Radio1 = $W->AddRadioButton(
                   -text  => "By Name",
                   -align => center,
                   -top   => 5,
                   -name  => "Radio1") or print_and_die("new RButton");

Then somemore code

à


à
$Radio1->Checked();
$W->Show();

Stanley G. Martin
Midwest Consulting Group
Sprint Financial Reengineering
(816) 889-8156
[EMAIL PROTECTED]
 [PICTURE]





Reply via email to