OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [demos/] [html/] [spindate.n.html] - Blame information for rev 1770

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
<HTML>
2
<HEAD>
3
<TITLE>iwidgets2.2.0 User Commands - spindate</TITLE>
4
</HEAD>
5
<BODY BGCOLOR="#FFFFFF">
6
<H1>iwidgets2.2.0 User Commands - spindate</H1>
7
<HR>
8
<PRE>
9
 
10
</PRE>
11
<H2><HR ALIGN=LEFT WIDTH=70% SIZE=3></H2><PRE>
12
 
13
 
14
</PRE>
15
<H2>NAME</H2><PRE>
16
     spindate - Create and manipulate time spinner widgets
17
 
18
 
19
</PRE>
20
<H2>SYNOPSIS</H2><PRE>
21
     <STRONG>spindate</STRONG> <EM>pathName</EM> ?<EM>options</EM>?
22
 
23
 
24
</PRE>
25
<H2>INHERITANCE</H2><PRE>
26
     itk::Widget &lt;- Spindate
27
 
28
 
29
 
30
</PRE>
31
<H2>STANDARD OPTIONS</H2><PRE>
32
     <STRONG>background</STRONG>      <STRONG>cursor</STRONG>         <STRONG>foreground</STRONG>      <STRONG>highlightColor</STRONG>
33
     <STRONG>highlightThickness</STRONG>             <STRONG>relief</STRONG>          <STRONG>selectBackgroundselectBorderWidth</STRONG>
34
     <STRONG>selectForeground</STRONG>
35
 
36
     See the "options" manual entry for details on  the  standard
37
     options.
38
 
39
 
40
</PRE>
41
<H2>ASSOCIATED OPTIONS</H2><PRE>
42
     <STRONG>textBackground</STRONG>  <STRONG>textFont</STRONG>
43
 
44
     See the "entryfield" manual entry for details on  the  above
45
     associated options.
46
 
47
     <STRONG>labelFont</STRONG>       <STRONG>labelMargin</STRONG>
48
 
49
     See the "labeledwidget" manual  entry  for  details  on  the
50
     above associated options.
51
 
52
     <STRONG>step</STRONG>
53
 
54
     See the "spinint" manual entry  for  details  on  the  above
55
     associated options.
56
 
57
     <STRONG>arrowOrient</STRONG>     <STRONG>repeatDelay</STRONG>    <STRONG>repeatInterval</STRONG>
58
 
59
     See the "spinner" manual entry  for  details  on  the  above
60
     associated options.
61
 
62
 
63
 
64
</PRE>
65
<H2>WIDGET-SPECIFIC OPTIONS</H2><PRE>
66
     Name:           <STRONG>dateMargin</STRONG>
67
     Class:          <STRONG>Margin</STRONG>
68
     Command-Line Switch:           <STRONG>-datemargin</STRONG>
69
 
70
          Specifies the margin space between the month, day,  and
71
          year  spinners  is  any  of  the  forms  accpetable  to
72
          <STRONG>Tcl_GetPixels</STRONG>.  The default is 1 pixel.
73
 
74
 
75
     Name:           <STRONG>dayLabel</STRONG>
76
     Class:          <STRONG>Text</STRONG>
77
     Command-Line Switch:           <STRONG>-daylabel</STRONG>
78
 
79
          Specifies the text of the label for  the  day  spinner.
80
          The default is "Day".
81
 
82
     Name:           <STRONG>dayOn</STRONG>
83
     Class:          <STRONG>dayOn</STRONG>
84
     Command-Line Switch:           <STRONG>-dayon</STRONG>
85
 
86
          Specifies whether or not to display the day spinner  in
87
          any  of  the  forms  acceptable to <STRONG>Tcl_GetBoolean</STRONG>.  The
88
          default is true.
89
 
90
     Name:           <STRONG>dayWidth</STRONG>
91
     Class:          <STRONG>Width</STRONG>
92
     Command-Line Switch:           <STRONG>-daywidth</STRONG>
93
 
94
          Specifies the width of the day spinner in  any  of  the
95
          forms  acceptable  to  <STRONG>Tcl_GetPixels</STRONG>.  The default is 3
96
          pixels.
97
 
98
     Name:           <STRONG>labelPos</STRONG>
99
     Class:          <STRONG>Position</STRONG>
100
     Command-Line Switch:           <STRONG>-labelpos</STRONG>
101
 
102
          Specifies the position of the label along the sides  of
103
          the various spinners: <STRONG>n</STRONG>, <STRONG>e</STRONG>, <STRONG>s</STRONG>, or <STRONG>w</STRONG>.  The default is w.
104
 
105
     Name:           <STRONG>monthFormat</STRONG>
106
     Class:          <STRONG>MonthFormat</STRONG>
107
     Command-Line Switch:           <STRONG>-monthformat</STRONG>
108
 
109
          Specifies the format of month display,  <STRONG>integer</STRONG>  (1-12)
110
          or  <STRONG>string</STRONG>  (Jan  -  Dec),  or a user specified list of
111
          values.
112
 
113
     Name:           <STRONG>monthLabel</STRONG>
114
     Class:          <STRONG>Text</STRONG>
115
     Command-Line Switch:           <STRONG>-monthlabel</STRONG>
116
 
117
          Specifies the text of the label for the month  spinner.
118
          The default is "Month".
119
 
120
     Name:           <STRONG>monthOn</STRONG>
121
     Class:          <STRONG>monthOn</STRONG>
122
     Command-Line Switch:           <STRONG>-monthon</STRONG>
123
 
124
          Specifies whether or not to display the  month  spinner
125
          in  any of the forms acceptable to <STRONG>Tcl_GetBoolean</STRONG>.  The
126
          default is true.
127
 
128
     Name:           <STRONG>monthWidth</STRONG>
129
     Class:          <STRONG>Width</STRONG>
130
     Command-Line Switch:           <STRONG>-monthwidth</STRONG>
131
 
132
          Specifies the width of the month spinner in any of  the
133
          forms  acceptable  to  <STRONG>Tcl_GetPixels</STRONG>.  The default is 3
134
          pixels.
135
 
136
     Name:           <STRONG>orient</STRONG>
137
     Class:          <STRONG>Orient</STRONG>
138
     Command-Line Switch:           <STRONG>-orient</STRONG>
139
 
140
          Specifies the orientation of the month, day,  and  year
141
          spinners:  <STRONG>vertical</STRONG> or <STRONG>horizontal</STRONG>.  The default is hor-
142
          izontal.
143
 
144
     Name:           <STRONG>yearDigits</STRONG>
145
     Class:          <STRONG>YearDigits</STRONG>
146
     Command-Line Switch:           <STRONG>-yeardigits</STRONG>
147
 
148
          Specifies the number of digits to be displayed  as  the
149
          value for the year spinner.  The valid values are 2 and
150
          4.  The default is 2.
151
 
152
     Name:           <STRONG>yearLabel</STRONG>
153
     Class:          <STRONG>Text</STRONG>
154
     Command-Line Switch:           <STRONG>-yearlabel</STRONG>
155
 
156
          Specifies the text of the label for the  year  spinner.
157
          The default is "Year"
158
 
159
     Name:           <STRONG>yearOn</STRONG>
160
     Class:          <STRONG>yearOn</STRONG>
161
     Command-Line Switch:           <STRONG>-yearon</STRONG>
162
 
163
          Specifies whether or not to display the year spinner in
164
          any  of  the  forms  acceptable to <STRONG>Tcl_GetBoolean</STRONG>.  The
165
          default is true.
166
 
167
     Name:           <STRONG>yearWidth</STRONG>
168
     Class:          <STRONG>Width</STRONG>
169
     Command-Line Switch:           <STRONG>-yearwidth</STRONG>
170
 
171
          Specifies the width of the year spinner in any  of  the
172
          forms  acceptable  to  <STRONG>Tcl_GetPixels</STRONG>.  The default is 3
173
          pixels.
174
 
175
 
176
</PRE>
177
<H2><HR ALIGN=LEFT WIDTH=70% SIZE=3></H2><PRE>
178
 
179
 
180
 
181
</PRE>
182
<H2>DESCRIPTION</H2><PRE>
183
 
184
     The <STRONG>spindate</STRONG> command creates a set of spinners  for  use  in
185
     date  value entry.  The set includes an month, day, and year
186
     spinner widget.
187
 
188
 
189
 
190
</PRE>
191
<H2>METHODS</H2><PRE>
192
     The <STRONG>spindate</STRONG> command creates a new Tcl command whose name is
193
     <EM>pathName</EM>.  This command may be used to invoke various opera-
194
     tions on the widget. It has the following general form:
195
 
196
          <EM>pathName</EM> <EM>option</EM> ?<EM>arg</EM> <EM>arg</EM> ...?
197
 
198
     <EM>Option</EM> and the <EM>arg</EM>s determine the exact behavior of the com-
199
     mand. The following commands are possible for spindate widg-
200
     ets:
201
 
202
 
203
 
204
</PRE>
205
<H2>WIDGET-SPECIFIC METHODS</H2><PRE>
206
     <EM>pathName</EM> <STRONG>cget</STRONG> <EM>option</EM>
207
          Returns the current value of the  configuration  option
208
          given  by  <EM>option</EM>.   <EM>Option</EM>  may have any of the values
209
          accepted by the <STRONG>spindate</STRONG> command.
210
 
211
     <EM>pathName</EM> <STRONG>clear</STRONG>
212
          Delete the contents of all spinner components.
213
 
214
     <EM>pathName</EM> <STRONG>configure</STRONG> ?<EM>option</EM>? ?<EM>value</EM> <EM>option</EM> <EM>value</EM> ...?
215
          Query  or  modify  the  configuration  options  of  the
216
          widget.   If  no  <EM>option</EM>  is  specified, returns a list
217
          describing all of the available  options  for  <EM>pathName</EM>
218
          (see  <STRONG>Tk_ConfigureInfo</STRONG> for information on the format of
219
          this list).  If <EM>option</EM> is specified with no <EM>value</EM>, then
220
          the  command  returns  a  list describing the one named
221
          option (this list will be identical to the  correspond-
222
          ing  sublist  of  the  value  returned  if no <EM>option</EM> is
223
          specified).  If one or more  <EM>option</EM> - <EM>value</EM>  pairs  are
224
          specified,  then  the command modifies the given widget
225
          option(s) to have the given value(s);  in this case the
226
          command  returns  an empty string.  <EM>Option</EM> may have any
227
          of the values accepted by the <STRONG>spindate</STRONG> command.
228
 
229
     <EM>pathName</EM> <STRONG>delete</STRONG> <EM>component</EM> <EM>first</EM> ?<EM>last</EM>?
230
          Delete one or more characters  of  the  specified  <EM>com-</EM>
231
          <EM>ponent</EM>,  where  <EM>component</EM>  can  be <STRONG>month</STRONG>, <STRONG>day</STRONG>, or <STRONG>year</STRONG>.
232
          <EM>First</EM> is the index of the first  character  to  delete,
233
          and  <EM>last</EM>  is the index of the character just after the
234
          last one to delete.
235
 
236
     <EM>pathName</EM> <STRONG>get</STRONG> ?<EM>component</EM>?
237
          Get returns the  value  for  the  speicifed  component:
238
          <STRONG>month</STRONG>,  <STRONG>day</STRONG>,  or  <STRONG>year</STRONG>.  Without parameters the command
239
          returns the all three values as a list.
240
 
241
     <EM>pathName</EM> <STRONG>insert</STRONG> <EM>component</EM> <EM>index</EM> <EM>string</EM>
242
          Inserts the characters of <EM>string</EM> just before the  char-
243
          acter  indicated  by <EM>index</EM> in the <EM>component</EM>, where <EM>com-</EM>
244
          <EM>ponent</EM> can be <STRONG>month</STRONG>, <STRONG>day</STRONG>, or <STRONG>year</STRONG>.
245
 
246
 
247
 
248
</PRE>
249
<H2>COMPONENTS</H2><PRE>
250
     Name:           <STRONG>month</STRONG>
251
     Class:          <STRONG>Spinner</STRONG>
252
 
253
          The month spinner component is the month spinner of the
254
          date  spinner.  See the Spinner widget manual entry for
255
          details on the month component item.
256
 
257
     Name:           <STRONG>day</STRONG>
258
     Class:          <STRONG>Spinint</STRONG>
259
 
260
          The day spinner component is the  day  spinner  of  the
261
          date  spinner.  See the SpinInt widget manual entry for
262
          details on the day component item.
263
 
264
     Name:           <STRONG>year</STRONG>
265
     Class:          <STRONG>Spinint</STRONG>
266
 
267
          The year spinner component is the year spinner  of  the
268
          date spinner.  See the SpinInt widget manual entry for-
269
          details on the year component item.
270
 
271
 
272
 
273
</PRE>
274
<H2>EXAMPLE</H2><PRE>
275
          spindate .sd
276
          pack .sd -padx 10 -pady 10
277
 
278
 
279
 
280
</PRE>
281
<H2>AUTHOR</H2><PRE>
282
     Sue Yockey
283
 
284
     Mark L. Ulferts
285
 
286
 
287
</PRE>
288
<H2>KEYWORDS</H2><PRE>
289
     spindate, spinint, spinner, entryfield, entry, widget
290
 
291
 
292
 
293
 
294
 
295
 
296
 
297
 
298
 
299
 
300
 
301
</PRE>
302
</BODY>
303
</HTML>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.