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

📄 timefield.n

📁 linux 下的源代码分析阅读器 red hat公司新版
💻 N
字号:
'\"'\" Copyright (c) 1997 DSC Technologies Corporation'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'\" @(#) timefield.n 1.0 97/04/30 16:04:44'/" .so man.macros.HS timefield iwid.BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEtimefield \- Create and manipulate a time field widget.SH SYNOPSIS\fBtimefield\fI \fIpathName \fR?\fIoptions\fR?.SH "INHERITANCE"itk::Widget <- LabeledWidget <- timefield.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\fBjustify\fR	\fBrelief\fR.fi.LPSee the "options" manual entry for details on the standard options..SH "INHERITED 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" class manual entry for details on the inherited options..SH "WIDGET-SPECIFIC OPTIONS".LP.nfName:	\fBchildSitePos\fRClass:	\fBPosition\fRCommand-Line Switch:	\fB-childsitepos\fR.fi.IPSpecifies the position of the child site in the time field: \fBn\fR, \fBs\fR, \fBe\fR, or \fBw\fR.  The default is e..LP.nfName:	\fBcommand\fRClass:	\fBCommand\fRCommand-Line Switch:	\fB-command\fR.fi.IPSpecifies a Tcl command to be executed upon detection of a Return key press event..LP.nfName:	\fBstate\fRClass:	\fBState\fRCommand-Line Switch:	\fB-state\fR.fi.IPSpecifies one of two states for the timefield: \fBnormal\fR or \fBdisabled\fR.If the timefield is disabled then input is not accepted.  The default isnormal..LP.nfName:	\fBtextBackground\fRClass:	\fBBackground\fRCommand-Line Switch:	\fB-textbackground\fR.fi.IPBackground color for inside textual portion of the entry field.  The valuemay be given in any of the forms acceptable to \fBTk_GetColor\fR..LP.nfName:	\fBtextFont\fRClass:	\fBFont\fRCommand-Line Switch:	\fB-textfont\fR.fi.IPName of font to use for display of text in timefield.  The valuemay be given in any of the forms acceptable to \fBTk_GetFont\fR..LP.BE.SH DESCRIPTION.PPThe \fBtimefield\fR command creates an enhanced text entry widget forthe purpose of time entry with various degrees of built-in intelligence..DE.SH "METHODS".PPThe \fBtimefield\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 timefield 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 \fBtimefield\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 \fBtimefield\fRcommand..TP\fIpathName \fBget\fR ?\fBformat\fR?Returns the current contents of the timefield in a format of string or as an integer clock value using the \fB-string\fR and \fB-clicks\fRformat options respectively.  The default is by string.  Reference the clock command for more information on obtaining times and their formats..TP\fIpathName \fBisvalid\fRReturns a boolean indication of the validity of the currentlydisplayed time value.  For example, 12:59:59 is valid whereas25:59:59 is invalid..TP\fIpathName \fBshow\fR \fItime\fRChanges the currently displayed time to be that of the time argument.  The time may be specified either as a string, aninteger clock value or the keyword "now" (the default). Reference the clock command for more information on obtainingtimes and their formats..SH "COMPONENTS".LP.nfName:	\fBtime\fRClass:	\fBEntry\fR.fi.IPThe time component provides the entry field for time input and display.See the "entry" widget manual entry for details on the time component item..fi.SH EXAMPLE.DS proc returnCmd {} {   puts [.tf get] } timefield .tf -command returnCmd pack .tf -fill x -expand yes -padx 10 -pady 10.DE.SH AUTHORJohn A. Tucker.DEMark L. Ulferts.LP.SH KEYWORDStimefield, widget

⌨️ 快捷键说明

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