Hey,
Just upgraded to v1.02 of the Win32::GUI from v1.00, and now when I run my app, I get some annoying error at the following:
$systray_menu = new Win32::GUI::Menu(
"SystrayMenu Functions" => "SystrayMenu",
"> Info" => "SystrayInfo",
"> Exit" => "SystrayExit"
);
sub SysTray_Click {
my($x, $y) = Win32::GUI::GetCursorPos();
$mw_win32->TrackPopupMenu($systray_menu->{SystrayMenu}, $x, $y); #
+ <- Errorline
0;
}
where it says:
Use of uninitialized value in subroutine entry at scipt.pl line ...
Use of uninitialized value in subroutine entry at scipt.pl line ...
Argument "*Win32::GUI::Window::Width" isn't numeric in subroutine entry at scipt.pl line ...
Wth is this? Worked before! Btw, the line the error is on is the line with the $mw_win32...
Edit: Now I also get:
Argument "*Win32::GUI::TrackPopupMenu" isn't numeric in subroutine entry at list script.pl line ...
Argument "" isn't numeric in subroutine entry at script.pl line ...
Argument "xpad" isn't numeric in subroutine entry at script.pl line ...
Argument "" isn't numeric in subroutine entry at script.pl line ...
All pointing at the same line.
UPDATE: Seems to be a bug (that is fixed now) in the module.
Thanks,
Ace
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.