You need to have the -name parameter for the label (and pretty much any
GUI element) that you create.

Jeremy Blonde
Network Technician
Davis Joint Unified School District
530.757.5300 ext. 117


-----Original Message-----
From: Peter Janson [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 03, 2003 3:43 AM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] AddLabel --> DrWatson


I thought I shuld take a look at win32::gui, and started out with the 
following script taken from a tutorial:

-----

use Win32::GUI;
$main   = Win32::GUI::Window->new(
        -name     => 'Main',
        -width  => 100,
        -height => 100,
);
$main->AddLabel(-text => "Hello,        world");
$main->Show();
Win32::GUI::Dialog();

sub Main_Terminate {
         -1;
}

-----

Looks simple enough, but causes DrWatson to kill perl.exe. AddLabel
seems to be the culprit.

Does anyone have a solution, or should I just refran from using
AddLabel?

/Peter


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users

Reply via email to