See comments in line > 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();
Get used to using: $main->Show(); $main->Enable(); > 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 Are you 100% sure you have tried .99 and 1.0? I have had some issues with ppm not always updating things properly in some cases. Try: perl -MWin32::GUI -e "print $VERSION"; And see if you get .558. If so, us ppm to remove all the Win32::GUI stuff, verify by using the command above, and the do a fresh ppm install of v1.0. > 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 >