home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
- <HEAD>
- <TITLE>messageBox - pop up a message window and wait for user response.</TITLE>
- <LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
- <LINK REV="made" HREF="mailto:">
- </HEAD>
-
- <BODY>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> messageBox - pop up a message window and wait for user response.</P></STRONG>
- </TD></TR>
- </TABLE>
-
- <A NAME="__index__"></A>
- <!-- INDEX BEGIN -->
-
- <UL>
-
- <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
-
- <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
- <LI><A HREF="#description">DESCRIPTION</A></LI>
- <LI><A HREF="#example">EXAMPLE</A></LI>
- <LI><A HREF="#author">AUTHOR</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <P>messageBox - pop up a message window and wait for user response.</P>
- <P>
- <HR>
- <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
- <UL>
- <LI>Linux</LI>
- <LI>Solaris</LI>
- <LI>Windows</LI>
- </UL>
- <HR>
- <H1><A NAME="synopsis">SYNOPSIS</A></H1>
- <P> <EM>$response</EM> = <EM>$widget</EM>-><STRONG>messageBox</STRONG>(<EM>-option</EM> => <EM>value</EM>, ... );</P>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>This method uses <A HREF="../../../site/lib/Tk/Dialog.html">Tk::Dialog</A> to quickly create several common dialog boxes.
- A dialog widget consists of a message, an icon and a set of buttons (see
- the <EM>-type</EM> option). After the message window is popped up, <STRONG>messageBox</STRONG>
- waits for the user to select one of the buttons and return the button text.
- NOTE: unlike <STRONG>Tk::Dialog</STRONG> which creates its widget once and can be used
- many times, the <STRONG>messageBox</STRONG> window is created every time it's used.</P>
- <P>The following option/value pairs are supported:</P>
- <DL>
- <DT><STRONG><A NAME="item_%2Ddefault"><STRONG>-default</STRONG></A></STRONG><BR>
- <DD>
- The case-sensitive symbolic name of the default button
- for this message window ('OK', 'Cancel' and so
- on). See <STRONG>-type</STRONG> 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.
- <P></P>
- <DT><STRONG><A NAME="item_%2Dicon"><STRONG>-icon</STRONG></A></STRONG><BR>
- <DD>
- Specifies an icon to display. Any of the builtin Tk bitmaps can
- specified.
- <P></P>
- <DT><STRONG><A NAME="item_%2Dmessage"><STRONG>-message</STRONG></A></STRONG><BR>
- <DD>
- Specifies the message to display.
- <P></P>
- <DT><STRONG><A NAME="item_%2Dtitle"><STRONG>-title</STRONG></A></STRONG><BR>
- <DD>
- Specifies a string to display as the title.
- <P></P>
- <DT><STRONG><A NAME="item_%2Dtype"><STRONG>-type</STRONG></A></STRONG><BR>
- <DD>
- Specifies a predefined set of buttons to be displayed. The following values are possible:
- 'AbortRetryIgnore', 'OK', 'OKCancel', 'RetryCancel', 'YesNo' or 'YesNoCancel'.
- <P></P></DL>
- <P>
- <HR>
- <H1><A NAME="example">EXAMPLE</A></H1>
- <P><EM>$repsonse</EM> = <EM>$mw</EM>-><STRONG>messageBox</STRONG>(-icon => 'questhead', -message => 'Hello World!', -title => 'My title', -type => 'AbortRetryIgnore', -default => 'Retry');</P>
- <P>
- <HR>
- <H1><A NAME="author">AUTHOR</A></H1>
- <P><A HREF="mailto:Stephen.O.Lidie@Lehigh.EDU.">Stephen.O.Lidie@Lehigh.EDU.</A> 98/05/25</P>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> messageBox - pop up a message window and wait for user response.</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-