summaryrefslogtreecommitdiffstats
path: root/doc/messageBox.n
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2004-05-24 21:23:21 (GMT)
committerdkf <dkf@noemail.net>2004-05-24 21:23:21 (GMT)
commit8e7c34902010d628c761554fe25b0b1684d97e18 (patch)
tree26e4be23b11829f6c0b64418ee5a68e743886828 /doc/messageBox.n
parent1a691c2a8a9ba7936a75ef63e6808723c0fc711b (diff)
downloadtk-8e7c34902010d628c761554fe25b0b1684d97e18.zip
tk-8e7c34902010d628c761554fe25b0b1684d97e18.tar.gz
tk-8e7c34902010d628c761554fe25b0b1684d97e18.tar.bz2
Finish off the TIP#152 implementation with Win implementation, tests & docs.
FossilOrigin-Name: 6234cffff3231ed2a536c27406b4cb25ad102f6f
Diffstat (limited to 'doc/messageBox.n')
-rw-r--r--doc/messageBox.n17
1 files changed, 14 insertions, 3 deletions
diff --git a/doc/messageBox.n b/doc/messageBox.n
index 4e6eead..36bcc36 100644
--- a/doc/messageBox.n
+++ b/doc/messageBox.n
@@ -4,7 +4,7 @@
'\" 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.5 2000/04/27 18:28:58 ericm Exp $
+'\" RCS: @(#) $Id: messageBox.n,v 1.6 2004/05/24 21:23:23 dkf Exp $
'\"
.so man.macros
.TH tk_messageBox n 4.2 Tk "Tk Built-In Commands"
@@ -33,6 +33,14 @@ this message window ('ok', 'cancel', 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
following: \fBerror\fR, \fBinfo\fR, \fBquestion\fR or
@@ -78,10 +86,13 @@ and \fBcancel\fR.
.PP
.SH EXAMPLE
.CS
-set answer [tk_messageBox \-message "Really quit?" \-type yesno \-icon question]
+set answer [tk_messageBox \-message "Really quit?" \b
+ \-icon question \-type yesno \b
+ \-detail "Select \b"Yes\b" to make the application exit"]
switch -- $answer {
yes exit
- no {tk_messageBox \-message "I know you like this application!" \-type ok}
+ no {tk_messageBox \-message "I know you like this application!" \b
+ \-type ok}
}
.CE