1MsgBox(3)             User Contributed Perl Documentation            MsgBox(3)
2
3
4

NAME

6       Tk::MsgBox - create and manipulate a message dialog
7

SYNOPSIS

9           use Tk::MsgBox
10           ...
11           $d = $top->MsgBox(-title => "Title", -type => "okcancel");
12           ...
13           $button = $d->Show;
14

DESCRIPTION

16       MsgBox is a simple dialog with predefined buttons.
17

OPTIONS

19       The options recognized by MsgBox are as follows:
20
21       -icon
22           Specify the icon of the MsgBox. Valid values are error, info,
23           question, or warning.
24
25       -type
26           Specify the type of the MsgBox. Valid values are abortretryignore,
27           ok, okcancel, retrycancel, yesno, or yesnocancel. The type
28           determines the buttons to be shown.
29
30       -default
31           Specify the default button. This must be one of abort, retry,
32           ignore, ok, cancel, yes, or no, depending on the type of the MsgBox
33           previously specified.
34
35       -detail
36           Specify text for the detail region of the MsgBox.
37
38       -message
39           Specify the message text of the MsgBox.
40
41       -title
42           Specify the title of the MsgBox.
43

METHODS

45       MsgBox supports only one method as of now:
46
47       Show()
48           Displays the MsgBox until the user invokes one of the buttons.
49           Returns the name of the button invoked.
50

AUTHOR

52       Translated from Tcl/Tk by Slaven Rezic srezic@cpan.org
53
54       This code is distributed under the same terms as Perl.
55

SEE ALSO

57       Tk::messageBox, Tk::DialogBox, Tk::Dialog.
58
59
60
61perl v5.28.0                      2018-07-15                         MsgBox(3)
Impressum