messageBox(3pm) | User Contributed Perl Documentation | messageBox(3pm) |
Tk::messageBox - pop up a message window and wait for user response.
$response = $widget->messageBox(-option => value, ... );
This method uses Tk::Dialog to quickly create several common dialog boxes. A dialog widget consists of a message, an icon and a set of buttons (see the -type option). After the message window is popped up, messageBox waits for the user to select one of the buttons and return the button text (note that it's best to check the returned value in a case insensitive manner). NOTE: unlike Tk::Dialog which creates its widget once and can be used many times, the messageBox window is created every time it's used.
The following option/value pairs are supported:
$response = $mw->messageBox(-icon => 'question', -message => 'Hello World!', -title => 'My title', -type => 'AbortRetryIgnore', -default => 'Retry');
Stephen.O.Lidie@Lehigh.EDU. 98/05/25
2020-11-09 | perl v5.32.0 |