The samples that come with the module are generally very good place to
learn; I've found the documentation to be sketchy at times, though.

To answer your specific question, ->SetFocus() is the command you'll use.
For example:

my $Window = new Win32::GUI::Window(
        -name   => "Window",
        -left   => 210,
        -top    => 100,
        -width  => 700,
        -height => 500,
        -title  => "Look Ma, a window!",
        -menu   => $Menu,
);

$Window->SetFocus();


You can do this with a window, dialog box, or a widget on either. Have fun,
this is good stuff.


-----Original Message-----
From: Perciaccante, Robert [mailto:[EMAIL PROTECTED]
Sent: Friday, March 16, 2001 10:30 AM
To: 'perl-win32-gui-users@lists.sourceforge.net'
Subject: [perl-win32-gui-users] Quick question


OK, being relatively new to Perl, I stumbled upon Win32::GUI and I can see a
number of uses.

I am sure that newbie questions are, as it should be, usually answered with
"RTFM", but being mostly from the Win32 world (and slowly retreating), I
don't know where to get good reference materials.

I am not looking to have you answer my questions necessarily, but pointers
in the right direction would be appreciated.  So here are the things that I
am looking for answers for:

1) How do I make the focus of a MsgBox change?  Currently, using the example
provided with the module, the message box does not have the focus, but
instead ends up behind everything.  Since I am using this as an indicator of
job completion, in the front would be nice :)
2) I know this is not necessarily the right forum for this question, but I
am looking for a resource on GUI programming in PERL.. like I said earlier,
just getting into Perl right now, so pointers would be appreciated.

Thanks for putting up with the Newbie questions :)

Bob

_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users

Reply via email to