Sorry about that.  I made a typo when I sent out the email.  I figured the
Show() function might be returning 0, but after closing the error message I
still get the busy cursor, so I wasn't sure if there was anything else I
might be getting wrong.  I also forgot to mention that I'm using Win32::GUI
v0.0.665 on Windows 2000.  I'll try rolling back to 0.0.558 and see if that
changes anything.

Side note:  I've tried adding a button since and I don't get any error, but
it's still stuck at the hourglass like it's waiting for something.

BTW, if you want to install 0.0.665, just extract the files from the tarball
that comes with the .ppd file.  In it is a blib folder.  You should be able
to manually copy the folders in there to their appropriate places in
/perl/site/lib, and that will do it.

-----Original Message-----
From: Sean Healy
To: [EMAIL PROTECTED]; perl-win32-gui-users@lists.sourceforge.net
Sent: 4/4/02 6:04 AM
Subject: Re: [perl-win32-gui-users] Newbie to GUI -- Busy Window?

I ran your code.  First, it complained about the extra right curly
bracket 
in this sub:

>sub PresentWindow{
>       $main->Resize(GetClientSize()) || ErrMsg("Could not resize
>Window!\n");
>       $main->Show() || ErrMsg( "Could not un-hide window!\n");
>       }
>       $main->Dialog() || ErrMsg("Could not start dialog!\n");
>}

When I fixed that and tried again, Windows gave me a 'This application
has 
performed an illegal operation and will be shut down.  A little digging 
showed that the problem as this line, which does not have a -name option

set.

>my $label = $main->AddLabel(-text => "This is my text.", -font =>
$font);

Adding a name label fixes that, and the I get the error message that it 
can't unhide - but I also see the window!  (See Paul's message about
Show() 
returning 0.)

My guess is that you're using a different version of Win32::GUI than I
am 
(I'm still using 0.0.558 because I couldn't get the PPM for 0.0.665 at 
SourceForge to work) and your version is slightly more tolerant of
missing 
names.  Anyway, it seems like what's happening is that your window
actually 
appears, but is 0 pixels by 0 pixels in dimension.

_________________________________________________________________
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.


--------------------------------------------------------------------------------
This email may contain confidential and privileged 
material for the sole use of the intended recipient. 
If you are not the intended recipient, please contact 
the sender and delete all copies.

Reply via email to