GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TK::MESSAGEBOX (3)

.ds Aq ’

NAME

Tk::messageBox - pop up a message window and wait for user response.

CONTENTS

SYNOPSIS

$response = $widget-><B>messageBoxB>(-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, <B>messageBoxB> 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 <B>Tk::DialogB> which creates its widget once and can be used many times, the <B>messageBoxB> window is created every time it’s used.

The following option/value pairs are supported:
<B>-defaultB> The case-sensitive symbolic name of the default button for this message window (’Ok’, ’Cancel’ and so on). See <B>-typeB> 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.
<B>-iconB> Specifies an icon to display. On X11 any of the builtin Tk bitmaps can specified. On Windows only <B>errorB>, <B>infoB>, <B>questionB> or <B>warningB> are supported.
<B>-messageB> Specifies the message to display.
<B>-titleB> Specifies a string to display as the title.
<B>-typeB> Specifies a predefined set of buttons to be displayed. The following values are possible: ’AbortRetryIgnore’, ’Ok’, ’OkCancel’, ’RetryCancel’, ’YesNo’ or ’YesNoCancel’.

EXAMPLE

$response = $mw-><B>messageBoxB>(-icon => ’question’, -message => ’Hello World!’, -title => ’My title’, -type => ’AbortRetryIgnore’, -default => ’Retry’);

AUTHOR

Stephen.O.Lidie@Lehigh.EDU. 98/05/25
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MESSAGEBOX (3) 2013-11-15

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.