Tk::MsgBox - create and manipulate a message dialog
use Tk::MsgBox ... $d = $top->MsgBox(-title => "Title", -type => "okcancel"); ... $button = $d->Show;
User Contributed Perl Documentation MsgBox(3)
NAME
Tk::MsgBox - create and manipulate a message dialog
SYNOPSIS
use Tk::MsgBox
...
$d = $top->MsgBox(-title => "Title", -type => "okcancel");
...
$button = $d->Show;
DESCRIPTION
MsgBox is a simple dialog with predefined buttons.
OPTIONS
The options recognized by MsgBox are as follows:
-icon
Specify the icon of the MsgBox. Valid values are error, info,
question, or warning.
-type
Specify the type of the MsgBox. Valid values are abortretryignore,
ok, okcancel, retrycancel, yesno, or yesnocancel. The type
determines the buttons to be shown.
-default
Specify the default button. This must be one of abort, retry,
ignore, ok, cancel, yes, or no, depending on the type of the MsgBox
previously specified.
-detail
Specify text for the detail region of the MsgBox.
-message
Specify the message text of the MsgBox.
-title
Specify the title of the MsgBox.
METHODS
MsgBox supports only one method as of now:
Show()
Displays the MsgBox until the user invokes one of the buttons.
Returns the name of the button invoked.
AUTHOR
Translated from Tcl/Tk by Slaven Rezic srezic@cpan.org
This code is distributed under the same terms as Perl.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+----------------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+----------------------------+
|Availability | library/perl-5/perl-tk-532 |
+---------------+----------------------------+
|Stability | Volatile |
+---------------+----------------------------+
SEE ALSO
Tk::messageBox, Tk::DialogBox, Tk::Dialog.
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from
http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/Tk-804.036.tar.gz.
Further information about this software can be found on the open source
community website at http://search.cpan.org/~srezic/Tk.
perl v5.32.0 2013-11-15 MsgBox(3)