Found the problem with some more testing. It works on other machines in the office. Turns out it's how I'm launching perl. I use TextPad with a macro to call Perl and pass it the current file as a parameter.
When I do it that way, the window doesn't show up for some reason. If I run the script from a DOS window it does. thanks --Dan > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Daniel Houlton > Sent: Friday, January 07, 2005 1:07 PM > To: perl-win32-users@listserv.ActiveState.com > Subject: Win32::GUI - 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 > > _______________________________________________ > Perl-Win32-Users mailing list > Perl-Win32-Users@listserv.ActiveState.com > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs