1<TITLE>timeentry - Create and manipulate a timeentry widget</TITLE>
2<H1>timeentry - Create and manipulate a timeentry widget</H1>
3
4</pre><H2>SYNOPSIS</H2>
5<B>timeentry<I> <I>pathName </I>?<I>options</I>?
6</pre><H2>INHERITANCE</H2>
7itk::Widget &lt;- LabeledWidget &lt;- Timefield &lt;- Timeentry
8</pre><H2>STANDARD OPTIONS</H2>
9<P>
10<table cellpadding=5>
11<td valign=top>
12<B>background</B><br>
13<B>foreground</B><br>
14<B>justify</B><br>
15</td>
16<td valign=top>
17<B>borderWidth</B><br>
18<B>highlightColor</B><br>
19<B>relief</B><br>
20</td>
21<td valign=top>
22<B>cursor</B><br>
23<B>highlightThickness</B><br>
24</td>
25<td valign=top>
26<B>exportSelection</B><br>
27<B>insertBackground</B><br>
28</td>
29</table>
30<P>
31See the <A HREF="http://www.sco.com/Technology/tcl/man/tk_man/options.n.html"> "options" </A> manual entry for details on the standard options.
32</pre><H2>INHERITED OPTIONS</H2>
33<P>
34<table cellpadding=5>
35<td valign=top>
36<B>disabledForeground</B><br>
37<B>labelMargin</B><br>
38<B>state</B><br>
39</td>
40<td valign=top>
41<B>labelBitmap</B><br>
42<B>labelPos</B><br>
43</td>
44<td valign=top>
45<B>labelFont</B><br>
46<B>labelText</B><br>
47</td>
48<td valign=top>
49<B>labelImage</B><br>
50<B>labelVariable</B><br>
51</td>
52</table>
53<P>
54See the <A HREF="labeledwidget.n.html"> "labeledwidget" </A> class manual entry for details on these
55inherited options.
56<P>
57<table cellpadding=5>
58<td valign=top>
59<B>command</B><br>
60<B>textFont</B><br>
61</td>
62<td valign=top>
63<B>format</B><br>
64</td>
65<td valign=top>
66<B>seconds</B><br>
67</td>
68<td valign=top>
69<B>textBackground</B><br>
70</td>
71</table>
72<P>
73See the "timefield" class manual entry for details on these
74inherited options.
75</pre><H2>ASSOCIATED OPTIONS</H2>
76<P>
77<table cellpadding=5>
78<td valign=top>
79<B>hourRadius</B><br>
80<B>pivotRadius</B><br>
81<B>clockColor</B><br>
82<B>watchWidth</B><br>
83</td>
84<td valign=top>
85<B>hourColor</B><br>
86<B>pivotColor</B><br>
87<B>clockStipple</B><br>
88</td>
89<td valign=top>
90<B>minuteRadius</B><br>
91<B>secondRadius</B><br>
92<B>tickColor</B><br>
93</td>
94<td valign=top>
95<B>minuteColor</B><br>
96<B>secondColor</B><br>
97<B>watchHeight</B><br>
98</td>
99</table>
100<P>
101See the "watch" manual entry for details on the associated options.
102</pre><H2>WIDGET-SPECIFIC OPTIONS</H2>
103<P>
104<pre>
105Name:                   <B>closeText</B>
106Class:                  <B>Text</B>
107Command-Line Switch:	<B>-closetext</B>
108</pre>
109<UL>
110Specifies the text to be displayed on the close button of the watch
111popup.  The default is Close.
112</UL>
113<P>
114<pre>
115Name:                   <B>grab</B>
116Class:                  <B>Grab</B>
117Command-Line Switch:	<B>-grab</B>
118</pre>
119<UL>
120Specifies the grab level, <B>local</B> or <B>global</B>, to be obtained before 
121bringing up the popup watch.  The default is global.  For more information
122concerning grab levels, consult the documentation for Tk's <B>grab</B> command.
123</UL>
124<P>
125<pre>
126Name:                   <B>icon</B>
127Class:                  <B>Icon</B>
128Command-Line Switch:	<B>-icon</B>
129</pre>
130<UL>
131Specifies the watch icon image to be used in the timeentry.  
132This image must have been created previously with 
133the <B>image create</B> command.  Should one not be provided, 
134then one will be generated, pixmap if possible, bitmap otherwise.
135</UL>
136<P>
137<pre>
138Name:                   <B>state</B>
139Class:                  <B>State</B>
140Command-Line Switch:	<B>-state</B>
141</pre>
142<UL>
143Specifies the state of the widget which may be <B>disabled</B> or
144<B>normal</B>.  A disabled state prevents selection of the timefield
145or time icon button.
146</UL>
147<P>
148</pre><HR>
149
150</pre><H2>DESCRIPTION</H2>
151<P>
152The <B>timeentry</B> command creates a time entry field 
153with a popup watch by combining the timefield and watch 
154widgets together.  This allows a user to enter the time via the 
155keyboard or by using the mouse and selecting the watch icon 
156which brings up a popup watch.
157</pre>
158
159</pre><H2>METHODS</H2>
160<P>
161The <B>timeentry</B> command creates a new Tcl command whose
162name is <I>pathName</I>.  This
163command may be used to invoke various
164operations on the widget.  It has the following general form:
165<pre>
166<I>pathName option </I>?<I>arg arg ...</I>?
167</pre>
168<I>Option</I> and the <I>arg</I>s
169determine the exact behavior of the command.  The following
170commands are possible for timeentry widgets:
171</pre><H2>INHERITED METHODS</H2>
172<P>
173<table cellpadding=5>
174<td valign=top>
175<B>get</B><br>
176</td>
177<td valign=top>
178<B>isvalid</B><br>
179</td>
180<td valign=top>
181<B>show</B><br>
182</td>
183<td valign=top>
184</td>
185</table>
186<P>
187See the "timefield" manual entry for details on the associated methods.
188</pre><H2>WIDGET-SPECIFIC METHODS</H2>
189<DL>
190<DT> <I>pathName <B>cget</B> <I>option</I>
191</I></B>
192<DD> Returns the current value of the configuration option given
193by <I>option</I>.
194<I>Option</I> may have any of the values accepted by the <B>timeentry</B>
195command.
196</DL>
197<DL>
198<DT> <I>pathName</I> <B>configure</B> ?<I>option</I>? ?<I>value option value ...</I>?
199</I></B>
200<DD> Query or modify the configuration options of the widget.
201If no <I>option</I> is specified, returns a list describing all of
202the available options for <I>pathName</I> (see <B>Tk_ConfigureInfo</B> for
203information on the format of this list).  If <I>option</I> is specified
204with no <I>value</I>, then the command returns a list describing the
205one named option (this list will be identical to the corresponding
206sublist of the value returned if no <I>option</I> is specified).  If
207one or more <I>option-value</I> pairs are specified, then the command
208modifies the given widget option(s) to have the given value(s);  in
209this case the command returns an empty string.
210<I>Option</I> may have any of the values accepted by the <B>timeentry</B>
211command.
212
213</DL>
214</pre><H2>COMPONENTS</H2>
215<P>
216<pre>
217Name:                   <B>label</B>
218Class:                  <B>Label</B>
219</pre>
220<UL>
221The label component provides a label component to used to identify the time.
222See the "label" widget manual entry for details on the label component item.
223</UL>
224<P>
225<pre>
226Name:                   <B>iconbutton</B>
227Class:                  <B>Label</B>
228</pre>
229<UL>
230The iconbutton component provides a labelbutton component to act as a 
231lightweight button
232displaying the watch icon.  Upon pressing the labelbutton, the watch
233appears.  See the "label" widget manual entry for details on the 
234labelbutton component item.
235</UL>
236<P>
237<pre>
238Name:                   <B>time</B>
239Class:                  <B>Entry</B>
240</pre>
241<UL>
242The time component provides the entry field for time input and display.
243See the <A HREF="http://www.sco.com/Technology/tcl/man/tk_man/entry.n.html"> "entry" </A> widget manual entry for details on the time component item.
244</UL>
245</table>
246
247</pre><H2>EXAMPLE</H2>
248<pre>
249 timeentry .te
250 pack .te
251</pre>
252</pre><H2>AUTHOR</H2>
253Mark L. Ulferts
254<P>
255</pre><H2>KEYWORDS</H2>
256timeentry, widget
257