📄 spinint.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.'\"'\" @(#) spinint.n 1.21 94/12/17 16:04:44'/" .so man.macros.HS spinint iwid.BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMEspinint \- Create and manipulate a integer spinner widget.SH SYNOPSIS\fBspinint\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- Labeledwidget <- Spinner <- Spinint.SH "STANDARD OPTIONS".LP.nf.ta 4c 8c 12c\fBbackground\fR \fBborderWidth\fR \fBcursor\fR \fBexportSelection\fR\fBforeground\fR \fBhighlightColor\fR \fBhighlightThickness\fR \fBinsertBackground\fR\fBinsertBorderWidth\fR \fBinsertOffTime\fR \fBinsertOnTime\fR \fBinsertWidth\fR\fBjustify\fR \fBrelief\fR \fBselectBackground\fR \fBselectBorderWidth\fR\fBselectForeground\fR \fBtextVariable\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "ASSOCIATED OPTIONS".LP.nf.ta 4c 8c 12c\fBshow\fR \fBstate\fR.fi.LPSee the "entry" manual entry for details on the associated options..SH "INHERITED OPTIONS".LP.nf.ta 4c 8c 12c\fBcommand\fR \fBchildSitePos\fR \fBfixed\fR \fBfocusCommand\fR\fBinvalid\fR \fBtextBackground\fR \fBtextFont\fR \fBvalidate\fR\fBwidth\fR.fi.LPSee the "entryfield" widget manual entry for details on the aboveinherited options..LP.nf.ta 4c 8c 12c\fBdisabledForeground\fR \fBlabelBitmap\fR \fBlabelFont\fR \fBlabelImage\fR\fBlabelMargin\fR \fBlabelPos\fR \fBlabelText\fR \fBlabelVariable\fR\fBstate\fR.fi.LPSee the "labeledwidget" widget manual entry for details on the aboveinherited options..LP.nf.ta 4c 8c 12c\fBarroworient\fR \fBdecrement\fR \fBincrement\fR \fBrepeatDelay\fR\fBrepeatInterval\fR.fi.LPSee the "spinner" widget manual entry for details on the above inherited options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName: \fBrange\fRClass: \fBRange\fRCommand-Line Switch: \fB-range\fR.fi.IPSpecifies a two element list of minimum and maximum integer values. Thedefault is no range, {{} {}}..LP.nfName: \fBstep\fRClass: \fBStep\fRCommand-Line Switch: \fB-step\fR.fi.IPSpecifies the increment/decrement value. The default is 1..LP.nfName: \fBwrap\fRClass: \fBWrap\fRCommand-Line Switch: \fB-wrap\fR.fi.IPSpecifies whether to wrap the spinner value upon reaching the minimumor maximum value in any of the forms acceptable to \fBTcl_GetBoolean\fR.The default is true..LP.BE.SH DESCRIPTION.PPThe \fBspinint\fR command creates a spinint widget. The spinint allows"spinning" of integer values within a specified range with wrap support.The spinner arrows may be drawn horizontally or vertically..DE.SH "METHODS".PPThe \fBspinint\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 spinint widgets:.SH "ASSOCIATED METHODS".LP.nf.ta 4c 8c 12c\fBdelete\fR \fBget\fR \fBicursor\fR \fBindex\fR \fBinsert\fR \fBpeek\fR \fBscan\fR \fBselection\fR\fBxview\fR .fi.LPSee the "entry" manual entry for details on the associated methods..SH "INHERITED METHODS".LP.nf.ta 4c 8c 12c\fBchildsite\fR \fBclear\fR.fi.LPSee the "entryfield" 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 \fBspinint\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 \fBspinint\fRcommand..TP\fIpathName \fBdown\fRDecrement the spinner value by the value given in the step option..TP\fIpathName \fBup\fRIncrement the spinner value by the value given in the step option..SH "COMPONENTS".IPSee the "Spinner" widget manual entry for details on the integer spinnercomponent items..SH EXAMPLE.DS option add *textBackground white spinint .si -labeltext "Temperature" -labelpos w \\ -fixed yes -width 5 -range {32 212} pack .si -pady 10.DE.SH AUTHORSue Yockey.SH KEYWORDSspinint, widget
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -