📄 dialog.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.'\"'\" @(#) dialog.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS dialog iwid.BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMEdialog \- Create and manipulate a dialog widget.SH SYNOPSIS\fBdialog\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Toplevel <- Shell <- Dialogshell <- Dialog.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\fBbuttonBoxPadX\fR \fBbuttonBoxPadY\fR \fBbuttonBoxPos\fR \fBpadX\fR\fBpadY\fR \fBseparator\fR \fBthickness\fR .fi.LPSee the "dialogshell" manual entry for details on the above 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..BE.SH DESCRIPTION.PPThe \fBdialog\fR command creates a dialog box providing standardbuttons and a child site for use in derived classes. The buttonsinclude ok, apply, cancel, and help. Methods and Options exist to configure the buttons and their containing box..SH "METHODS".PPThe \fBdialog\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 dialog widgets:.SH "INHERITED METHODS".LP.nf.ta 4c 8c 12c\fBadd\fR \fBbuttonconfigure\fR \fBdefault\fR \fBhide\fR\fBindex\fR \fBinsert\fR \fBinvoke\fR \fBshow\fR.fi.LPSee the "buttonbox" manual entry for details on the above inherited methods..LP.nf.ta 4c 8c 12c\fBchildsite\fR .fi.LPSee the "dialogshell" manual entry for details on the above 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 "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 \fBdialog\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 \fBdialog\fRcommand..SH EXAMPLE.DS dialog .d -modality global .d buttonconfigure OK -command {puts OK; .d deactivate 1} .d buttonconfigure Apply -command {puts Apply} .d buttonconfigure Cancel -command {puts Cancel; .d deactivate 0} .d buttonconfigure Help -command {puts Help} listbox [.d childsite].lb -relief sunken pack [.d childsite].lb -expand yes -fill both if {[.d activate]} { puts "Exit via OK button" } else { puts "Exit via Cancel button" }.DE.SH AUTHORMark L. Ulferts.DEBret A. Schuhmacher.SH KEYWORDSdialog, dialogshell, shell, widget
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -