⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messagedialog.n

📁 linux 下的源代码分析阅读器 red hat公司新版
💻 N
字号:
'\"'\" Copyright (c) 1995 DSC Technologies Corporation'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'\" @(#) messagedialog.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS messagedialog iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEmessagedialog \- Create and manipulate a message dialog widget.SH SYNOPSIS\fBmessagedialog\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Toplevel <- Shell <- Dialogshell <- Dialog <- Messagedialog.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBbackground\fR	\fBbitmap\fR	\fBcursor\fR	\fBfont\fR\fBforeground\fR	\fBimage\fR	\fBtext\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "INHERITED OPTIONS".LP.nf.ta 4c 8c 12c\fBbuttonBoxPadX\fR	\fBbuttonBoxPadY\fR	\fBbuttonBoxPos\fR	\fBpadX\fR\fBpadY\fR	\fBseparator\fR	\fBthickness\fR	.fi.LPSee the "dialogshell" widget manual entry for details on the aboveinherited options..LP.nf.ta 4c 8c 12c\fBmaster\fR	\fBmodality\fR.fi.LPSee the "shell" widget manual entry for details on the aboveinherited options..LP.nf.ta 4c 8c 12c\fBtitle\fR.fi.LPSee the "Toplevel" widget manual entry for details on the aboveinherited options..LP.SH "WIDGET-SPECIFIC OPTIONS".LP.nfName:	\fBimagePos\fRClass:	\fBPosition\fRCommand-Line Switch:	\fB-imagepos\fR.fi.IPSpecifies the image position relative to the message text: \fBn\fR, \fBs\fR, \fBe\fR, or \fBw\fR.  The default is w..LP.nfName:	\fBtextPadX\fRClass:	\fBPad\fRCommand-Line Switch:	\fB-textpadx\fR.fi.IPSpecifies a non-negative value indicating how much extra space to request for the message text in the X direction.  The value may have any of the forms acceptable to Tk_GetPixels..LP.nfName:	\fBtextPadY\fRClass:	\fBPad\fRCommand-Line Switch:	\fB-textpady\fR.fi.IPSpecifies a non-negative value indicating how much extra space to request for the message text in the X direction.  The value may have any of the forms acceptable to Tk_GetPixels..LP.BE.SH DESCRIPTION.PPThe \fBmessagedialog\fR command creates a message dialog composite widget. The messagedialog is derived from the Dialog class and is composed of an image and associated message text with commands to manipulate the dialog buttons..SH "METHODS".PPThe \fBmessagedialog\fR command creates a new Tcl command whosename is \fIpathName\fR.  Thiscommand may be used to invoke variousoperations on the widget.  It has the following general form:.DS C\fIpathName option \fR?\fIarg arg ...\fR?.DE\fIOption\fR and the \fIarg\fRsdetermine the exact behavior of the command.  The followingcommands are possible for messagedialog widgets:.SH "INHERITED METHODS".LP.nf.ta 4c 8c 12c\fBadd\fR	\fBbuttonconfigure\fR	\fBdefault\fR	\fBhide\fR\fBinsert\fR	\fBinvoke\fR	\fBshow\fR.fi.LPSee the "buttonbox" widget manual entry for details on the aboveinherited methods..LP.nf.ta 4c 8c 12c\fBchildsite\fR	.fi.LPSee the "dialogshell" widget manual entry for details on the aboveinherited methods..LP.nf.ta 4c 8c 12c\fBactivate\fR	\fBcenter\fR	\fBdeactivate\fR.fi.LPSee the "dialogshell" widget manual entry for details on the aboveinherited methods..SH "WIDGET-SPECIFIC METHODS".TP\fIpathName \fBcget\fR \fIoption\fRReturns the current value of the configuration option givenby \fIoption\fR.\fIOption\fR may have any of the values accepted by the \fBmessagedialog\fRcommand..TP\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?Query or modify the configuration options of the widget.If no \fIoption\fR is specified, returns a list describing all ofthe available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR forinformation on the format of this list).  If \fIoption\fR is specifiedwith no \fIvalue\fR, then the command returns a list describing theone named option (this list will be identical to the correspondingsublist of the value returned if no \fIoption\fR is specified).  Ifone or more \fIoption\-value\fR pairs are specified, then the commandmodifies the given widget option(s) to have the given value(s);  inthis case the command returns an empty string.\fIOption\fR may have any of the values accepted by the \fBmessagedialog\fRcommand..SH "COMPONENTS".LP.nfName:	\fBimage\fRClass:	\fBLabel\fR.fi.IPThe image component is the bitmap or image of the message dialog.  See the "label" widget manual entry for details on the image component item..LP.nfName:	\fBmessage\fRClass:	\fBLabel\fR.fi.IPThe message component provides the textual portion of the message dialog.See the "label" widget manual entry for details on the message component item..fi.SH EXAMPLE.DS # # Standard question message dialog used for confirmation. # messagedialog .md -title "Message Dialog" -text "Are you sure ?" \\	-bitmap questhead -modality global .md buttonconfigure OK -text Yes .md buttonconfigure Cancel -text No if {[.md activate]} {    .md configure -text "Are you really sure ?"    if {[.md activate]} {	puts stdout "Yes"    } else {	puts stdout "No"    } } else {    puts stdout "No" } destroy .md # # Copyright notice with automatic deactivation. # messagedialog .cr -title "Copyright" -bitmap @dsc.xbm -imagepos n \\     -text "Copyright 1995 DSC Communications Corporation\\n \\	    All rights reserved"  .cr hide Cancel .cr activate after 10000 ".cr deactivate".DE.SH AUTHORMark L. Ulferts.SH KEYWORDSmessagedialog, dialog, dialogshell, shell, widget

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -