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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [itcl/] [iwidgets3.0.0/] [doc/] [dateentry.n] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1997 DSC Technologies Corporation
3
'\"
4
'\" See the file "license.terms" for information on usage and redistribution
5
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
6
'\"
7
'\" @(#) dateentry.n 1.0 97/04/30 16:04:44
8
'/"
9
.so man.macros
10
.HS dateentry iwid
11
.BS
12
'\" Note:  do not modify the .SH NAME line immediately below!
13
.SH NAME
14
dateentry \- Create and manipulate a dateentry widget
15
.SH SYNOPSIS
16
\fBdateentry\fI \fIpathName \fR?\fIoptions\fR?
17
.SH "INHERITANCE"
18
itk::Widget <- LabeledWidget <- Datefield <- Dateentry
19
.SH "STANDARD OPTIONS"
20
.LP
21
.nf
22
.ta 4c 8c 12c
23
\fBbackground\fR        \fBborderWidth\fR       \fBcursor\fR    \fBexportSelection\fR
24
\fBforeground\fR        \fBhighlightColor\fR    \fBhighlightThickness\fR        \fBinsertBackground\fR
25
\fBjustify\fR   \fBrelief\fR
26
.fi
27
.LP
28
See the "options" manual entry for details on the standard options.
29
.SH "INHERITED OPTIONS"
30
.LP
31
.nf
32
.ta 4c 8c 12c
33
\fBdisabledForeground\fR        \fBlabelBitmap\fR       \fBlabelFont\fR \fBlabelImage\fR
34
\fBlabelMargin\fR       \fBlabelPos\fR  \fBlabelText\fR \fBlabelVariable\fR
35
\fBstate\fR
36
.fi
37
.LP
38
See the "labeledwidget" class manual entry for details on these
39
inherited options.
40
.LP
41
.nf
42
.ta 4c 8c 12c
43
\fBcommand\fR   \fBiq\fR        \fBstate\fR     \fBtextBackground\fR
44
\fBtextFont\fR
45
.fi
46
.LP
47
See the "datefield" class manual entry for details on these
48
inherited options.
49
.SH "ASSOCIATED OPTIONS"
50
.LP
51
.nf
52
.ta 4c 8c 12c
53
\fBbackwardImage\fR     \fBbuttonForeground\fR  \fBcommand\fR   \fBcurrentDateFont\fR
54
\fBdateFont\fR  \fBdayFont\fR   \fBdays\fR      \fBforwardImage\fR
55
\fBoutline\fR   \fBselectColor\fR       \fBselectThickness\fR   \fBstartDay\fR
56
\fBtitleFont\fR \fBweekdayBackground\fR \fBweekendBackground\fR
57
.fi
58
.LP
59
See the "calendar" manual entry for details on the associated options.
60
.SH "WIDGET-SPECIFIC OPTIONS"
61
.LP
62
.nf
63
Name:   \fBgrab\fR
64
Class:  \fBGrab\fR
65
Command-Line Switch:    \fB-grab\fR
66
.fi
67
.IP
68
Specifies the grab level, \fBlocal\fR or \fBglobal\fR, to be obtained before
69
bringing up the popup calendar.  The default is global.  For more information
70
concerning grab levels, consult the documentation for Tk's \fBgrab\fR command.
71
.LP
72
.nf
73
Name:   \fBicon\fR
74
Class:  \fBIcon\fR
75
Command-Line Switch:    \fB-icon\fR
76
.fi
77
.IP
78
Specifies the calendar icon image to be used in the dateentry.
79
This image must have been created previously with
80
the \fBimage create\fR command.  Should one not be provided,
81
then one will be generated, pixmap if possible, bitmap otherwise.
82
.LP
83
.BE
84
 
85
.SH DESCRIPTION
86
.PP
87
The \fBdateentry\fR command creates a quicken style date entry field
88
with a popup calendar by combining the datefield and calendar
89
widgets together.  This allows a user to enter the date via the
90
keyboard or by using the mouse and selecting the calendar icon
91
which brings up a popup calendar.
92
.DE
93
 
94
.SH "METHODS"
95
.PP
96
The \fBdateentry\fR command creates a new Tcl command whose
97
name is \fIpathName\fR.  This
98
command may be used to invoke various
99
operations on the widget.  It has the following general form:
100
.DS C
101
\fIpathName option \fR?\fIarg arg ...\fR?
102
.DE
103
\fIOption\fR and the \fIarg\fRs
104
determine the exact behavior of the command.  The following
105
commands are possible for dateentry widgets:
106
.SH "INHERITED METHODS"
107
.LP
108
.nf
109
.ta 4c 8c 12c
110
\fBget\fR       \fBisvalid\fR   \fBshow\fR
111
.fi
112
.LP
113
See the "datefield" manual entry for details on the associated methods.
114
.SH "WIDGET-SPECIFIC METHODS"
115
.TP
116
\fIpathName \fBcget\fR \fIoption\fR
117
Returns the current value of the configuration option given
118
by \fIoption\fR.
119
\fIOption\fR may have any of the values accepted by the \fBdateentry\fR
120
command.
121
.TP
122
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
123
Query or modify the configuration options of the widget.
124
If no \fIoption\fR is specified, returns a list describing all of
125
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
126
information on the format of this list).  If \fIoption\fR is specified
127
with no \fIvalue\fR, then the command returns a list describing the
128
one named option (this list will be identical to the corresponding
129
sublist of the value returned if no \fIoption\fR is specified).  If
130
one or more \fIoption\-value\fR pairs are specified, then the command
131
modifies the given widget option(s) to have the given value(s);  in
132
this case the command returns an empty string.
133
\fIOption\fR may have any of the values accepted by the \fBdateentry\fR
134
command.
135
 
136
.SH "COMPONENTS"
137
.LP
138
.nf
139
Name:   \fBlabel\fR
140
Class:  \fBLabel\fR
141
.fi
142
.IP
143
The label component provides a label component to used to identify the date.
144
See the "label" widget manual entry for details on the label component item.
145
.LP
146
.nf
147
Name:   \fBiconbutton\fR
148
Class:  \fBLabel\fR
149
.fi
150
.IP
151
The iconbutton component provides a labelbutton component to act as a
152
lightweight button
153
displaying the calendar icon.  Upon pressing the labelbutton, the calendar
154
appears.  See the "label" widget manual entry for details on the
155
labelbutton component item.
156
.LP
157
.nf
158
Name:   \fBdate\fR
159
Class:  \fBEntry\fR
160
.fi
161
.IP
162
The date component provides the entry field for date input and display.
163
See the "entry" widget manual entry for details on the date component item.
164
.fi
165
 
166
.SH EXAMPLE
167
.DS
168
 dateentry .de
169
 pack .de
170
.DE
171
.SH AUTHOR
172
Mark L. Ulferts
173
.LP
174
.SH KEYWORDS
175
dateentry, widget

powered by: WebSVN 2.1.0

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