📄 feedback.n
字号:
'\"'\" Copyright (c) 1996 DSC Technologies Corporation'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'\" @(#) feedback.n'/" .so man.macros.HS feedback iwid.BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMEfeedback \- Create and manipulate a feedback widget to display feedback onthe current status of an ongoing operation to the user..SH SYNOPSIS\fBfeedback\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- Labeledwidget <- Feedback.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBbackground\fR \fBcursor\fR \fBforeground\fR \fBhighlightColor\fR\fBhighlightThickness\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "INHERITED OPTIONS".LP.nf.ta 4c 8c 12c\fBlabelBitmap\fR \fBlabelFont\fR \fBlabelImage\fR \fBlabelMargin\fR\fBlabelPos\fR \fBlabelText\fR \fBlabelVariable\fR .fi.LPSee the "labeledwidget" class manual entry for details on the inherited options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName: \fBbarcolor\fRClass: \fBBarColor\fRCommand-Line Switch: \fB-barcolor\fR.fi.IPSpecifies the color of the status bar, in any of the formsacceptable to \fBTk_GetColor\fR. The default is DodgerBlue..LP.nfName: \fBbarheight\fRClass: \fBBarHeight\fRCommand-Line Switch: \fB-barheight\fR.fi.IPSpecifies the height of the status bar, in any of the formsacceptable to \fBTk_GetPixels\fR. The default is 20..LP.nfName: \fBtroughColor\fRClass: \fBTroughColor\fRCommand-Line Switch: \fB-troughcolor\fR.fi.IPSpecifies the color of the frame in which the status bar sits,in any of the forms acceptable to \fBTk_GetColor\fR. The default is white..LP.nfName: \fBsteps\fRClass: \fBSteps\fRCommand-Line Switch: \fB-steps\fR.fi.IPSpecifies the total number of steps for the status bar. The default is 10..LP.SH DESCRIPTION.PPThe \fBfeedback\fR command creates a widget to display feedback onthe current status of an ongoing operation to the user. Display is given asa percentage and as a thermometer type bar. Options exist for adding a labeland controlling its position..SH "METHODS".PPThe \fBfeedback\fR command creates 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 scrolledtext widgets:.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 \fBscrolledhtml\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 \fBfeedback\fRcommand..TP\fIpathName\fR \fBreset\fRReset the current number of steps completed to 0, and configures thepercentage complete label text to 0%.TP\fIpathName\fR \fBstep\fR ?\fIinc\fR?Increase the current number of steps completed by the amount specifiedby \fIinc\fR. \fIInc\fR defaults to 1..SH EXAMPLE.DS feedback .fb -labeltext "Status" -steps 20 pack .fb -padx 10 -pady 10 -fill both -expand yes for {set i 0} {$i < 20} {incr i} { .fb step after 500 }.DE.SH ACKNOWLEDGEMENTSSam Shen.IPThis code is based largely on his feedback.tcl code from tk inspect. The original feedback code is copyright 1995 Lawrence Berkeley Laboratory..LP.SH AUTHORKris Raney.SH KEYWORDSfeedback, widget
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -