summaryrefslogtreecommitdiffstats
path: root/doc/messageBox.n
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2008-06-30 22:56:59 (GMT)
committerdkf <dkf@noemail.net>2008-06-30 22:56:59 (GMT)
commit8d46f1ba64cc754a2853c5253744215ef1f2b3c0 (patch)
treed6714c53bb2368a4c8befd4c7dc0085d88b31a15 /doc/messageBox.n
parent18641c7826bca127501bd5fc410313ca66544e86 (diff)
downloadtk-8d46f1ba64cc754a2853c5253744215ef1f2b3c0.zip
tk-8d46f1ba64cc754a2853c5253744215ef1f2b3c0.tar.gz
tk-8d46f1ba64cc754a2853c5253744215ef1f2b3c0.tar.bz2
Minor doc updates (removing out of date changebars, improving typedef formatting,
etc.) FossilOrigin-Name: 3354fd63452f0b436d3a487f1e1f0fecf750cee1
Diffstat (limited to 'doc/messageBox.n')
-rw-r--r--doc/messageBox.n12
1 files changed, 5 insertions, 7 deletions
diff --git a/doc/messageBox.n b/doc/messageBox.n
index 8aac4d7..00f1ba8 100644
--- a/doc/messageBox.n
+++ b/doc/messageBox.n
@@ -1,10 +1,11 @@
+'\" -*- nroff -*-
'\"
'\" Copyright (c) 1996 Sun Microsystems, Inc.
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: messageBox.n,v 1.10 2007/12/13 15:23:43 dgp Exp $
+'\" RCS: @(#) $Id: messageBox.n,v 1.11 2008/06/30 22:57:03 dkf Exp $
'\"
.so man.macros
.TH tk_messageBox n 4.2 Tk "Tk Built-In Commands"
@@ -15,7 +16,6 @@ tk_messageBox \- pops up a message window and waits for user response.
.SH SYNOPSIS
\fBtk_messageBox \fR?\fIoption value ...\fR?
.BE
-
.SH DESCRIPTION
.PP
This procedure creates and displays a message window with an
@@ -24,7 +24,7 @@ the buttons in the message window is identified by a unique symbolic
name (see the \fB\-type\fR options). After the message window is
popped up, \fBtk_messageBox\fR waits for the user to select one of the
buttons. Then it returns the symbolic name of the selected button.
-
+.PP
The following option-value pairs are supported:
.TP
\fB\-default\fR \fIname\fR
@@ -32,17 +32,15 @@ The following option-value pairs are supported:
this message window (
.QW ok ,
.QW cancel ,
-and so on). See \fB\-type\fR
+and so on). See \fB\-type\fR
for a list of the symbolic names. If this option is not specified,
the first button in the dialog will be made the default.
.TP
\fB\-detail\fR \fIstring\fR
-.VS 8.5
Specifies an auxiliary message to the main message given by the
\fB\-message\fR option. Where supported by the underlying OS, the
message detail will be presented in a less emphasized font than the
main message.
-.VE 8.5
.TP
\fB\-icon\fR \fIiconImage\fR
Specifies an icon to display. \fIIconImage\fR must be one of the
@@ -88,6 +86,7 @@ and \fBcancel\fR.
.RE
.PP
.SH EXAMPLE
+.PP
.CS
set answer [\fBtk_messageBox\fR \-message "Really quit?" \e
\-icon question \-type yesno \e
@@ -98,6 +97,5 @@ switch \-\- $answer {
\-type ok}
}
.CE
-
.SH KEYWORDS
message box