0

I'm following an online Win32::Gui tutorial to learn how to add a GUI to my Perl application. So far everything's been good. But I'm having some pesky small problems. So I'm asking for help here again.

One problem is, I have to click my mouse in the textfield before I can type. I tried something lie this:

$Object->AddTextfield(
        -name   => "Birthday",
        -left   => 75,
        -top    => 50,
        -width  => 180,
        -height => 20,
        -number => 1,
        -prompt => "Input birthday:",       

    );


$Object->Birthday->GetFocus();
$Object->Birthday->Activate();

But it doesn't work. Can anyone kindly help? Thanks in advance.

brian d foy
  • 129,424
  • 31
  • 207
  • 592
Mike
  • 1,841
  • 5
  • 24
  • 34

2 Answers2

2

how about $Object->Birthday->SetFocus()?

ax.
  • 58,560
  • 8
  • 81
  • 72
-1

Birthday->SetFocus() will work fine....

you can try

Rahul
  • 1