📄 dialogshell.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.'\"'\" @(#) dialogshell.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS dialogshell iwid.BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMEdialogshell \- Create and manipulate a dialog shell widget.SH SYNOPSIS\fBdialogshell\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Toplevel <- Shell <- Dialogshell.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBbackground\fR \fBcursor\fR \fBforeground\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "INHERITED OPTIONS".LP.nf.ta 4c 8c 12c\fBheight\fR \fBmaster\fR \fBmodality\fR \fBwidth\fR.fi.LPSee the "shell" manual entry for details on the above inherited options..LP.nf.ta 4c 8c 12c\fBtitle\fR .fi.LPSee the "Toplevel" manual entry for details on the above inherited options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName: \fBbuttonBoxPadX\fRClass: \fBPad\fRCommand-Line Switch: \fB-buttonboxpadx\fR.fi.IPSpecifies a non-negative padding distance to leave between the button group andthe outer edge of the button box in the x direction. The value may be given in any of the forms accpetable to \fBTk_GetPixels\fR. The default is 5 pixels..LP.nfName: \fBbuttonBoxPadY\fRClass: \fBPad\fRCommand-Line Switch: \fB-buttonboxpady\fR.fi.IPSpecifies a non-negative padding distance to leave between the button group andthe outer edge of the button box in the y direction. The value may be given in any of the forms accpetable to \fBTk_GetPixels\fR. The default is 5 pixels..LP.nfName: \fBbuttonBoxPos\fRClass: \fBPosition\fRCommand-Line Switch: \fB-buttonboxpos\fR.fi.IPAttaches buttons to the given side of the dialog: \fBn\fR, \fBs\fR, \fBe\fR or \fBw\fR. The default is s..LP.nfName: \fBpadX\fRClass: \fBPad\fRCommand-Line Switch: \fB-padx\fR.fi.IPSpecifies a padding distance for the childsite in the X-direction inany of the forms acceptable to \fBTk_GetPixels\fR. The default is 10..LP.nfName: \fBpadY\fRClass: \fBPad\fRCommand-Line Switch: \fB-pady\fR.fi.IPSpecifies a padding distance for the childsite in the Y-direction inany of the forms acceptable to \fBTk_GetPixels\fR. The default is 10..LP.nfName: \fBseparator\fRClass: \fBSeparator\fRCommand-Line Switch: \fB-separator\fR.fi.IPSpecifies whether a line is drawn to separate the buttons from the dialog box contents in any of the formsacceptable to \fBTcl_GetBoolean\fR. The default is true..LP.nfName: \fBthickness\fRClass: \fBThickness\fRCommand-Line Switch: \fB-thickness\fR.fi.IPSpecifies the thickness of the separator in any of the forms acceptableto \fBTk_GetPixels\fR. The default is 3 pixels..BE.SH DESCRIPTION.PPThe \fBdialogshell\fR command creates a dialog shell which is a top level widget composed of a button box, separator, and child site area.The class also has methods to control button construction..SH "METHODS".PPThe \fBdialogshell\fR command create a new Tcl command whosename is \fIpathName\fR. This command 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 dialogshell widgets:.SH "INHERITED METHODS".LP.nf.ta 4c 8c 12c\fBactivate\fR \fBcenter\fR \fBdeactivate\fR.fi.LPSee the "shell" manual entry for details on the above inherited methods..SH "ASSOCIATED METHODS".LP.nf.ta 4c 8c 12c\fBadd\fR \fBbuttonconfigure\fR \fBdefault\fR \fBdelete\fR\fBhide\fR \fBindex\fR \fBinsert\fR \fBinvoke\fR\fBshow\fR.fi.LPSee the "buttonbox" manual entry for details on the associated 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 \fBdialogshell\fRcommand..TP\fIpathName \fBchildsite\fRReturns the pathname of the child site widget..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 \fBdialogshell\fRcommand..SH "COMPONENTS".LP.nfName: \fBdschildsite\fRClass: \fBframe\fR.fi.IPThe dschildsite component is the user child site for the dialog shell. See the "frame" widget manual entry for details on the dschildsite component item..LP.nfName: \fBseparator\fRClass: \fBframe\fR.fi.IPThe separator component devides the area between the user child site andthe button box. See the "frame" widget manual entry for details on the separator component item..LP.nfName: \fBbbox\fRClass: \fBButtonBox\fR.fi.IPThe bbox component is the button box containing the buttons for the dialog shell. See the "ButtonBox" widget manual entry for details on the bbox component item..fi.SH EXAMPLE.DS dialogshell .ds -modality none .ds add OK -text "OK" .ds add Cancel -text "Cancel" .ds default OK .ds activate.DE.SH AUTHORMark L. Ulferts.SH KEYWORDSdialogshell, dialog, shell, widget
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -