How I use messagebox:
return Win32::GUI::MessageBox($window, $text,
"Warning", MB_YESNO | MB_ICONWARNING | MB_DEFBUTTON2);
You need to have the window object passed in - I think that is why it is
returning nothing.
Cheers,
jez.
From: "Steffen Mueller" <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Subject: [perl-win32-gui-users] Messagebox
Date: Thu, 1 May 2003 20:50:21 +0200
It seems that the MessageBox function doesn't return any value.
my $return = Win32::GUI::MessageBox (
0,
'please fill in account name',
'error',
2
);
print $return; # prints nothing
Does anyone have a piece of code which displays a MessageBox with
Win32::API (and prints which button the user clicked)?
Thanks,
SteMue
-------------------------------------------------------
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
_________________________________________________________________
Worried what your kids see online? Protect them better with MSN 8
http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059