Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / Tk / messageBox.pod
CommitLineData
86530b38
AT
1=head1 NAME
2
3messageBox - pop up a message window and wait for user response.
4
5=for category Popups and Dialogs
6
7=head1 SYNOPSIS
8
9S< >I<$response> = I<$widget>-E<gt>B<messageBox>(I<-option> =E<gt> I<value>, ... );
10
11=head1 DESCRIPTION
12
13This method uses L<Tk::Dialog|Tk::Dialog> to quickly create several common dialog boxes.
14A dialog widget consists of a message, an icon and a set of buttons (see
15the I<-type> option). After the message window is popped up, B<messageBox>
16waits for the user to select one of the buttons and return the button text.
17NOTE: unlike B<Tk::Dialog> which creates its widget once and can be used
18many times, the B<messageBox> window is created every time it's used.
19
20The following option/value pairs are supported:
21
22=over 4
23
24=item B<-default>
25
26The case-sensitive symbolic name of the default button
27for this message window ('OK', 'Cancel' and so
28on). See B<-type> for a list of the symbolic names.
29If the message box has just one button it will
30automatically be made the default, otherwise if
31this option is not specified, there won't be any
32default button.
33
34=item B<-icon>
35
36Specifies an icon to display. Any of the builtin Tk bitmaps can
37specified.
38
39=item B<-message>
40
41Specifies the message to display.
42
43=item B<-title>
44
45Specifies a string to display as the title.
46
47=item B<-type>
48
49Specifies a predefined set of buttons to be displayed. The following values are possible:
50'AbortRetryIgnore', 'OK', 'OKCancel', 'RetryCancel', 'YesNo' or 'YesNoCancel'.
51
52=back
53
54=head1 EXAMPLE
55
56I<$repsonse> = I<$mw>-E<gt>B<messageBox>(-icon =E<gt> 'questhead', -message =E<gt> 'Hello World!', -title =E<gt> 'My title', -type =E<gt> 'AbortRetryIgnore', -default =E<gt> 'Retry');
57
58=head1 AUTHOR
59
60Stephen.O.Lidie@Lehigh.EDU. 98/05/25
61
62=cut
63