messageBox(3pm) User Contributed Perl Documentation messageBox(3pm)NAME
messageBox - pop up a message window and wait for user response.
SYNOPSIS
$response = $widget->messageBox(-option => value, ... );
DESCRIPTION
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:
-default
The case-sensitive symbolic name of the default button for this message window ('Ok', 'Cancel' and so on). See -type for a list
of the symbolic names. If the message box has just one button it will automatically be made the default, otherwise if this
option is not specified, there won't be any default button.
-icon
Specifies an icon to display. On X11 any of the builtin Tk bitmaps can specified. On Windows only error, info, question or warning are
supported.
-message
Specifies the message to display.
-title
Specifies a string to display as the title.
-type
Specifies a predefined set of buttons to be displayed. The following values are possible: 'AbortRetryIgnore', 'Ok', 'OkCancel',
'RetryCancel', 'YesNo' or 'YesNoCancel'.
EXAMPLE
$response = $mw->messageBox(-icon => 'question', -message => 'Hello World!', -title => 'My title', -type => 'AbortRetryIgnore', -default =>
'Retry');
AUTHOR
Stephen.O.Lidie@Lehigh.EDU. 98/05/25
perl v5.14.2 2010-05-29 messageBox(3pm)
Check Out this Related Man Page
MsgBox(3) 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.
SEE ALSO
Tk::messageBox, Tk::DialogBox, Tk::Dialog.
perl v5.12.1 2007-05-05 MsgBox(3)
Hi !
Please tell me how to get radio buttons, text boxes , check boxes , option buttons , pull down menus in C++ on Unix.
I think it would be done using curses.h ..but that's all i know.
TIA,
Devyani. (3 Replies)
When i run my perl/tk script, a perl window pops up behind the GUI window,, can this be hidden????
Also, can the Icon be changed, the Tk icon in every window??? (1 Reply)
Discussion started by: perleo
1 Replies
3. Post Here to Contact Site Administrators and Moderators
I want to post a question about unix. How can I create a question? I can't see a button to "create a new thread", apart from the one I just clicked to write this one :confused: "Post Here to Contact Site Administrators and Moderators"
thank you (1 Reply)
possible to stack case commands ? I get an error, s. comments below
select choice in search delete quit
do
case $choice in
search)
select option in title director year
do
case $option in
title)
.....
break
;;
... (2 Replies)
How I can display in a dialog the output of a process, such as messages displayed when running =>
service httpd start
I try this ..
dialog --textbox "$(service httpd reload)"
but not view nothing ..
Grettings!! :D (1 Reply)
Hi,
Last 2 weeks I have searched many forums and i haven't found the answer for the question:
How to get all command output to Putty title?
Needed it for other programs to know when some jobs on a server is done and is it done right or wrong. Plink stdout and stdin wasn't working, i used many... (1 Reply)