From: Everett, T. <TEv...@AL...> - 2002-10-01 18:57:13
|
Minimalist code for tossing up a GUI error message: require Wx; *Wx::App::OnInit = sub {1}; my $temp = Wx::App->new(); Wx::MessageBox($errormsg, "Fatal Error", wxOK|wxICON_ERROR, undef); --Toby Everett -----Original Message----- From: Mo [mailto:mo...@mo...] Sent: Tuesday, October 01, 2002 10:32 AM To: wxp...@li... Subject: [wxperl-users] Simple Messagebox Hello, I wrote a script that mainly acts as a server (in the background), but sometimes it's supposed to open a message-window. Now, from my understanding I need to define/open a window before I can display a Wx::MessageBox? Is there a way that I just need to open a messagebox without having a frame as the base? Also, I would need to have this messagebox opened with just one subroutine call giving the message as a parameter. I'm not that advanced in (wx)Perl, so I have problems to put a whole wxPerl script for a simple messagebox in one subroutine or package. Any help greatly appreciated. Thank you, Mo Schmidt ------------------------------------------------------- This sf.net email is sponsored by: DEDICATED SERVERS only $89! Linux or FreeBSD, FREE setup, FAST network. Get your own server today at http://www.ServePath.com/indexfm.htm _______________________________________________ wxperl-users mailing list wxp...@li... https://lists.sourceforge.net/lists/listinfo/wxperl-users |