paulehr has asked for the wisdom of the Perl Monks concerning the following question:
Hello fellow monks
I am trying to learn Win32::GUI for a small personal project i am working on. I eventually would like to do is display several lines of output into the main window, have a button that opens up browser when clicked, and sit in the systray when minimized. I have the last two things figured out and working using the examples on the project's CPAN page. However I am getting stuck with how to display multiple lines of text in the main window.
I have tried to do the following using Addlabel:
#!/usr/bin/perl -w use strict; use Win32::GUI; my $mw = Win32::GUI::Window->new ( -name => 'Main', -width => 300, -height => 100, -text => 'bbtrack', ); my $label1 = $mw->AddLabel( -text => "hello"); my $label2 = $mw->AddLabel( -text => "hello2"); $label1->show(); $label2->show(); $mw->Show(); Win32::GUI::Dialog();
This however doesnt work and i end up with the following error
Can't locate auto/Win32/GUI/Label/show.al in @INC (@INC contains: C:/P +erl/lib C: /Perl/site/lib .) at guitest.pl line 15
Am I perhaps going about this the wrong way? or/and there is a better way of doing what i am trying to do?
thanks for the help in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: adding multiple labels with win32::GUI
by rcseege (Pilgrim) on Sep 09, 2006 at 20:56 UTC | |
|
Re: adding multiple labels with win32::GUI
by BrowserUk (Patriarch) on Sep 09, 2006 at 20:31 UTC | |
|
Re: adding multiple labels with win32::GUI
by paulehr (Sexton) on Sep 09, 2006 at 22:03 UTC |