Very odd - I just ran that example and it displayed for me. (XP perl 5.6,
win32::gui v1.0).
What sub version of 5.8 are you using?
Cheers,
jez.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Sent: Friday, January 07, 2005 8:04 PM
Subject: [perl-win32-gui-users] Windows not displaying?
Hello
I'm looking at adding a GUI to several of my Perl scripts. I've
been trying to use Win32::GUI, but my windows will never display.
I've tried several sample scripts I've found on the net and they
won't work either. i.e., a simple "Hello World" test like this
won't work for me (from
http://jeb.ca/perl/win32-gui-docs/index.pl/Win32-GUI-HOW-TO-2):
---------------------
use Win32::GUI;
$main = Win32::GUI::Window->new(
-name => 'Main',
-width => 100,
-height => 100,
);
$main->AddLabel(-text => "Hello, world", -name => 'label');
$main->Show();
Win32::GUI::Dialog();
sub Main_Terminate {
-1;
}
---------------------
Any ideas why? The window does appear to be created. I can open
Spy++ (DevStudio 7) and it shows the "Hello World" window in the
list. But the window does not show up on my display.
I've tried Win32::GUI v.558, v.99_ and v1.0. I'm using ActivePerl
v5.8 and win2k pro. Any ideas?
thanks
--Dan
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users