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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [FileEnt.html] - Blame information for rev 1781

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

Line No. Rev Author Line
1 578 markom
 
2
 
3
 
4
<TITLE>tixFileEntry - Create and manipulate tixFileEntry widgets</TITLE>
5
<Center><H2>tixFileEntry - Create and manipulate tixFileEntry widgets</H2></Center><hr>
6
 
7
</pre><H3>SYNOPSIS</H3>
8
<B>tixFileEntry<I> <I>pathName ?<I>options</I></B>?
9
<P>
10
</pre><H3>SUPER-CLASS</H3>
11
The <B>TixFileEntry</B></I> class is derived from the <B>TixLabelWidget</B></I>
12
class and inherits all the commands, options and
13
subwidgets of its super-class.
14
</pre><H3>STANDARD OPTIONS</H3>
15
The FileEntry widget supports all the standard options of a frame
16
widget. See the <B>options(n)</B></I> manual entry for details on the
17
standard options.
18
</pre><H3>WIDGET-SPECIFIC OPTIONS</H3>
19
<P>
20
<pre><code><code><code>
21
Name:           <B>activateCmd</B></I>
22
Class:          <B>ActivateCmd</B></I>
23
Switch:         <B>-activatecmd</B></I>
24
</code></code></code></pre>
25
<UL>
26
Specifies the command to be called when the user activates the
27
<B>button</B></I> subwidget. This command is called before the file dialog
28
is popped up and can be used to customize the file dialog (which may
29
be shared by several FileEnt widget).
30
</UL>
31
<P>
32
<pre><code><code><code>
33
Name:           <B>command</B></I>
34
Class:          <B>Command</B></I>
35
Switch:         <B>-command</B></I>
36
</code></code></code></pre>
37
<UL>
38
Specifies the command to be called when the <B>-value</B></I> option of
39
the FileEntry is changed. This usually happens when the user inputs a
40
filename into the entry subwidget and hits the &lt;Return&gt; key. The
41
command will be called with one arguments -- the new value of the
42
FileEntry widget.
43
</UL>
44
<P>
45
<pre><code><code><code>
46
Name:           <B>dialogType</B></I>
47
Class:          <B>DialogType</B></I>
48
Switch:         <B>-dialogtype</B></I>
49
</code></code></code></pre>
50
<UL>
51
Specifies which type of file selection dialog should be popped up when
52
the user invokes the <B>button</B></I> subwidget. Current only two values
53
are valid: <B>tixFileSelectDialog</B></I> or <B>tixExFileSelectDialog</B></I>.
54
</UL>
55
<P>
56
<pre><code><code><code>
57
Name:           <B>disableCallback</B></I>
58
Class:          <B>DisableCallback</B></I>
59
Switch:         <B>-disablecallback</B></I>
60
</code></code></code></pre>
61
<UL>
62
A boolean value indicating whether callbacks should be disabled. When
63
set to true, the TCL command specified by the <B>-command</B></I> option
64
is not executed when the <B>-value</B></I> of the FileEntry widget
65
changes.
66
</UL>
67
<P>
68
<pre><code><code><code>
69
Name:           <B>disableForeground</B></I>
70
Class:          <B>DisableForeground</B></I>
71
Switch:         <B>-disableforeground</B></I>
72
</code></code></code></pre>
73
<UL>
74
The foreground color to use for of the entry subwidget when the
75
FileEntry widget is disabled.
76
</UL>
77
<P>
78
<pre><code><code><code>
79
Name:           <B>fileBitmap</B></I>
80
Class:          <B>FileBitmap</B></I>
81
Switch:         <B>-filebitmap</B></I>
82
</code></code></code></pre>
83
<UL>
84
Specifies the bitmap to display in side the <B>button</B></I> subwidget.
85
</UL>
86
<P>
87
<pre><code><code><code>
88
Name:           <B>label</B></I>
89
Class:          <B>Label</B></I>
90
Switch:         <B>-label</B></I>
91
</code></code></code></pre>
92
<UL>
93
Specifies the string to display as the label of this FileEntry widget.
94
</UL>
95
<P>
96
<pre><code><code><code>
97
Name:           <B>labelSide</B></I>
98
Class:          <B>LabelSide</B></I>
99
Switch:         <B>-labelside</B></I>
100
</code></code></code></pre>
101
<UL>
102
Specifies where the label should be displayed relative to the entry
103
subwidget. Valid options are: <B>top</B></I>, <B>left</B></I>, <B>right</B></I>,
104
<B>bottom</B></I>, <B>none</B></I> or <B>acrosstop</B></I>.
105
</UL>
106
<P>
107
<pre><code><code><code>
108
Name:           <B>selectMode</B></I>
109
Class:          <B>SelectMode</B></I>
110
Switch:         <B>-selectmode</B></I>
111
</code></code></code></pre>
112
<UL>
113
Specifies how the FileEntry widget should react to \fC&lt;KeyPress&gt;</B></I>
114
events. When set to "immediate", any user keyboard inputs will
115
immediately change the <B>-value</B></I> option. When set to "normal", the
116
user keyboard inputs will be copied to the <B>-value</B></I> option only
117
if the\fC &lt;Return&gt;</B></I> key is pressed or the keyboard focus is
118
changed. The use of the immediate mode is discouraged. For effective
119
use of the FileEntry widget, one should use the normal mode together
120
with the <B>update</B></I> widget command (see below).
121
</UL>
122
<P>
123
<pre><code><code><code>
124
Name:           <B>state</B></I>
125
Class:          <B>State</B></I>
126
Switch:         <B>-state</B></I>
127
</code></code></code></pre>
128
<UL>
129
Specifies the whether the FileEntry widget is normal or disabled. Only
130
the values "normal" and "disabled" are recognized.
131
</UL>
132
<P>
133
<pre><code><code><code>
134
Name:           <B>validateCmd</B></I>
135
Class:          <B>ValidateCmd</B></I>
136
Switch:         <B>-validatecmd</B></I>
137
</code></code></code></pre>
138
<UL>
139
Specifies a TCL command to be called when the -value of the
140
FileEntry widget is about to change. This command is called
141
with one parameter -- the new <B>-value</B></I> entered by the user. This
142
command is to validate this new value by returning a value it deems
143
valid.
144
</UL>
145
<P>
146
<pre><code><code><code>
147
Name:           <B>value</B></I>
148
Class:          <B>Value</B></I>
149
Switch:         <B>-value</B></I>
150
</code></code></code></pre>
151
<UL>
152
Specifies the value of the FileEntry.
153
</UL>
154
<P>
155
<pre><code><code><code>
156
Name:           <B>variable</B></I>
157
Class:          <B>Variable</B></I>
158
Switch:         <B>-variable</B></I>
159
</code></code></code></pre>
160
<UL>
161
Specifies the global variable in which the value of the FileEntry
162
should be stored. The value of the FileEntry will be automatically
163
updated when this variable is changed.
164
</UL>
165
</pre><H3>SUBWIDGETS</H3>
166
<P>
167
<pre><code><code><code>
168
Name:           <B>button</B></I>
169
Class:          <B>Button</B></I>
170
</code></code></code></pre>
171
<UL>
172
The button subwidget next to the entry subwidget.
173
</UL>
174
<P>
175
<pre><code><code><code>
176
Name:           <B>entry</B></I>
177
Class:          <B>Entry</B></I>
178
</code></code></code></pre>
179
<UL>
180
The entry subwidget in which the user can type in a filename.
181
</UL>
182
</pre><HR>
183
</pre><H3>DESCRIPTION</H3>
184
<P>
185
The <B>tixFileEntry</B></I> command creates a new window (given by
186
the <I>pathName</I></B> argument) and makes it into a FileEntry
187
widget. Additional options, described above, may be specified on the
188
command line or in the option database to configure aspects of the
189
FileEntry such as its cursor and relief.
190
<P>
191
The FileEntry widget can be used to input a filename. The user can
192
type in the filename manually. Alternatively, the user can press the
193
button widget that sits next to the entry, which will bring up a file
194
selection dialog of the type specified by the <B>-dialogtype</B></I> option.
195
</pre><H3>WIDGET COMMANDS</H3>
196
<P>
197
The <B>tixFileEntry</B></I> command creates a new Tcl command whose
198
window. This command may be used to invoke various operations on the
199
widget. It has the following general form:
200
<pre>
201
<I>pathName option </I></B>?<I>arg arg ...</I></B>?
202
<P>
203
</pre>
204
<I>PathName</I></B> is the name of the command, which is the same as the
205
<I>arg</I></B>s determine the exact behavior of the command. The following
206
commands are possible for FileEntry widgets:
207
<DL>
208
<DT> <I>pathName <B>cget</B></I> <I>option</I></B>
209
</I></B>
210
<DD> Returns the current value of the configuration option given by
211
<I>option</I></B>. <I>Option</I></B> may have any of the values accepted by the
212
<B>tixFileEntry</B></I> command.
213
</DL>
214
<DL>
215
<DT> <I>pathName <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
216
</I></B>
217
<DD> Query or modify the configuration options of the widget.  If no
218
<I>option</I></B> is specified, returns a list describing all of the
219
available options for <I>pathName</I></B> (see <B>Tk_ConfigureInfo</B></I> for
220
information on the format of this list).  If <I>option</I></B> is specified
221
with no <I>value</I></B>, then the command returns a list describing the
222
one named option (this list will be identical to the corresponding
223
sublist of the value returned if no <I>option</I></B> is specified).  If
224
one or more <I>option-value</I></B> pairs are specified, then the command
225
modifies the given widget option(s) to have the given value(s); in
226
this case the command returns an empty string.  <I>Option</I></B> may have
227
any of the values accepted by the <B>tixFileEntry</B></I> command.
228
</DL>
229
<DL>
230
<DT> <I>pathName <B>invoke</B></I>
231
</I></B>
232
<DD> Forces the FileEntry widget to act as if the user has pressed the
233
&lt;return&gt; key inside the entry subwidget.
234
</DL>
235
<DL>
236
<DT> <I>pathName <B>filedialog</B></I> <I>?args?</I></B>
237
</I></B>
238
<DD> When no additional arguments are given, this command returns the
239
pathname of the file dialog box associated with this FileEnt
240
widget. When additional arguments are given, the widget command of the
241
file dialog will be called with these arguments.
242
</DL>
243
<DL>
244
<DT> <I>pathName <B>subwidget <I>name ?args?</I></B>
245
</I></B>
246
<DD> When no options are given, this command returns the pathname of the
247
subwidget of the specified name. When options are given, the widget
248
command of the specified subwidget will be called with these options.
249
</DL>
250
<DL>
251
<DT> <I>pathName <B>update</B></I>
252
</I></B>
253
<DD> If the user has modified the entry using keyboard inputs, the update
254
command will <B>update</B></I> the <B>-value</B></I> of this FileEntry
255
to "normal", one should call the <B>update</B></I> command on this widget
256
before examining its <B>-value</B></I> option. This command has no effect
257
in if the <B>-selectmode</B></I> option is set to "immediate".
258
</DL>
259
</pre><H3>KEYWORDS</H3>
260
Tix(n)
261
<hr><i>Last modified Sun Jan 19 22:34:25 EST 1997 </i> ---
262
<i>Serial 853731299</i>

powered by: WebSVN 2.1.0

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