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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
 
2
 
3
 
4
<TITLE>tix - Manipulate Tix internal state</TITLE>
5
<Center><H2>tix - Manipulate Tix internal state</H2></Center><hr>
6
 
7
</pre><H3>SYNOPSIS</H3>
8
<B>tix</B></I> <I>option </I></B>?<I>arg arg ...</I></B>?
9
</pre><H3>CONFIGURATION OPTIONS</H3>
10
The Tix application context supports the following configuration
11
options. Usually, these options are set using the X resource database,
12
different color scheme for the Tix widgets, these two lines can be
13
<P>
14
<pre><code><code><code>
15
        *TixScheme:         Gray
16
        *TixFontSet:        14Point
17
</code></code></code></pre>
18
<P>
19
<pre><code><code><code>
20
Name:           <B>binding</B></I>
21
Class:          <B>Binding</B></I>
22
Switch:         <B>-binding</B></I>
23
</code></code></code></pre>
24
<UL>
25
This is an obsolete option.
26
</UL>
27
<P>
28
<pre><code><code><code>
29
Name:           <B>debug</B></I>
30
Class:          <B>Debug</B></I>
31
Switch:         <B>-debug</B></I>
32
</code></code></code></pre>
33
<UL>
34
Specifies whether the Tix widgets should run in debug mode.
35
</UL>
36
<P>
37
<pre><code><code><code>
38
Name:           <B>tixFontSet</B></I>
39
Class:          <B>TixFontSet</B></I>
40
Switch:         <B>-fontset</B></I>
41
</code></code></code></pre>
42
<UL>
43
Specifies the fontset to use for the Tix widgets. Valid options are
44
<B>TK</B></I>, <B>12Point</B></I> and <B>14Point</B></I>. <B>TK</B></I> specifies that the
45
standard TK fonts should be used. The default value is <B>14Point</B></I>.
46
</UL>
47
<P>
48
<pre><code><code><code>
49
Name:           <B>tixScheme</B></I>
50
Class:          <B>TixScheme</B></I>
51
Switch:         <B>-scheme</B></I>
52
</code></code></code></pre>
53
<UL>
54
Specifies the color scheme to use for the Tix widgets. Valid options
55
are <B>TK</B></I>, <B>Gray</B></I>, <B>Blue</B></I>, <B>Bisque</B></I>, <B>SGIGray</B></I> and
56
<B>TixGray</B></I>. The default value is <B>TixGray</B></I>. If you want the
57
standard TK color scheme, you can use the value <B>TK</B></I>. If you want
58
to use the TK 3.6 bisque color scheme, you can use the value <B>Bisque</B></I>.
59
</UL>
60
<P>
61
<pre><code><code><code>
62
Name:           <B>tixSchemePriority</B></I>
63
Class:          <B>TixSchemePriority</B></I>
64
Switch:         <B>-schemepriority</B></I>
65
</code></code></code></pre>
66
<UL>
67
Specifies the priority level of the TK options set by th Tix
68
schemes. Please refer to the TK <B>option(n)</B></I> manual page for a
69
discussion of the priority level of Tix options. The default value is
70
79, which makes the Tix schemes at a higher priority than the
71
settings in the .Xdefaults file. If you want to allow the Tix schemes
72
to be overridden by the settings in the .Xdefaults file, you can set
73
the following line in you .Xdefaults file:
74
</UL>
75
<pre><code><code><code>
76
*TixSchemePriority: 21
77
</code></code></code></pre>
78
</pre><HR>
79
 
80
</pre><H3>DESCRIPTION</H3>
81
<P>
82
The <B>tix</B></I> command provides access to miscellaneous elements of
83
the information manipulated by this command pertains to the
84
application as a whole, or to a screen or display, rather than to a
85
particular window.  The command can take any of a number of different
86
forms depending on the <I>option</I></B> argument.  The legal forms are:
87
<DL>
88
<DT> <B>tix <B>addbitmapdir</B></I> <I>directory</I></B>
89
</I></B>
90
<DD> Tix maintains a list of directory under which which the <B>tix
91
getimage</B></I> and <B>tix getbitmap</B></I> commands will search for image
92
files. The standard bitmap directory is
93
<B>$TIX_LIBRARY/bitmaps</B></I>. The <B>addbitmapdir</B></I> command adds
94
<I>directory</I></B> into this list. By using this command, the image files
95
of an applications can also be located using the <B>tix getimage</B></I> ot
96
<B>tix getbitmap</B></I> command.
97
</DL>
98
<DL>
99
<DT> <B>tix <B>cget</B></I> <I>option</I></B>
100
</I></B>
101
<DD> Returns the current value of the configuration option given by
102
<I>option</I></B>. <I>Option</I></B> may be any of the options described in the
103
<B>CONFIGURATION OPTIONS</B></I> section.
104
</DL>
105
<DL>
106
<DT> <B>tix <B>configure</B></I> ?<I>option</I></B>? <I>?value option value ...</I></B>?
107
</I></B>
108
<DD> Query or modify the configuration options of the Tix application
109
context. If no <I>option</I></B> is specified, returns a list describing
110
all of the available options (see <B>Tk_ConfigureInfo</B></I> for
111
information on the format of this list).  If <I>option</I></B> is specified
112
with no <I>value</I></B>, then the command returns a list describing the
113
one named option (this list will be identical to the corresponding
114
sublist of the value returned if no <I>option</I></B> is specified).  If
115
one or more <I>option-value</I></B> pairs are specified, then the command
116
modifies the given option(s) to have the given value(s); in this case
117
the command returns an empty string. <I>Option</I></B> may be any of the
118
options described in the <B>CONFIGURATION OPTIONS</B></I> section.
119
</DL>
120
<DL>
121
<DT> <B>tix filedialog </B></I>?<I>class</I></B>?
122
</I></B>
123
<DD> Returns the file selection dialog that may be shared among different
124
modules of this application. This command will create a file selection
125
dialog widget when it is called the first time. This dialog will be
126
returned by all subsequent calls to <B>tix filedialog</B></I>. An optional
127
<I>class</I></B> parameter can be passed to specified what type of file
128
selection dialog widget is desired. Possible options are
129
<B>tixFileSelectDialog</B></I> or <B>tixExFileSelectDialog.</B></I>
130
</DL>
131
<DL>
132
<DT> <B>tix getbitmap <I>name</I></B>
133
</I></B>
134
<DD> Locates a bitmap file of the name <I>name</I></B>.xpm or <I>name</I></B> in one
135
of the bitmap directories (see the <B>addbitmapdir</B></I> command
136
above). By using <B>tix getbitmap</B></I>, you can advoid hard coding the
137
pathnames of the bitmap files in your application. When successful, it
138
returns the complete pathname of the bitmap file, prefixed with the
139
character <B>@</B></I>.  The returned value can be used to configure the
140
<B>-bitmap</B></I> option of the TK and Tix widgets.
141
</DL>
142
<DL>
143
<DT> <B>tix getimage <I>name</I></B>
144
</I></B>
145
<DD> Locates an image file of the name <I>name</I></B>.xpm, <I>name</I></B>.xbm or
146
<I>name</I></B>.ppm in one of the bitmap directories (see the
147
<B>addbitmapdir</B></I> command above). If more than one file with the same
148
name (but different extensions) exist, then the image type is chosen
149
according to the depth of the X display: xbm images are chosen on
150
monochrome displays and color images are chosen on color displays. By
151
using <B>tix getimage</B></I>, you can advoid hard coding the pathnames of
152
the image files in your application. When successful, this command
153
returns the name of the newly created image, which can be used to
154
configure the <B>-image</B></I> option of the TK and Tix widgets.
155
</DL>
156
<DL>
157
<DT> <B>tix <B>option</B></I> ?<I>args ...</I></B>?
158
</I></B>
159
<DD> Manipulates the options manitained by the Tix scheme
160
mechanism. Available options are:
161
 
162
</DL>
163
<pre><code><code><code>
164
\fCactive_bg</B></I>    \fCactive_fg</B></I>    \fCbg</B></I>
165
\fCbold_font</B></I>    \fCdark1_bg</B></I>     \fCdark1_fg</B></I>
166
\fCdark2_bg</B></I>     \fCdark2_fg</B></I>     \fCdisabled_fg</B></I>
167
\fCfg</B></I>   \fCfixed_font</B></I>   \fCfont</B></I>
168
\fCinactive_bg</B></I>  \fCinactive_fg</B></I>  \fCinput1_bg</B></I>
169
\fCinput2_bg</B></I>    \fCitalic_font</B></I>  \fClight1_bg</B></I>
170
\fClight1_fg</B></I>    \fClight2_bg</B></I>    \fClight2_fg</B></I>
171
\fCmenu_font</B></I>    \fCoutput1_bg</B></I>   \fCoutput2_bg</B></I>
172
\fCselect_bg</B></I>    \fCselect_fg</B></I>    \fCselector</B></I>
173
</code></code></code></pre>
174
 
175
The arguments to the <B>tix <B>option</B></I> command can take the
176
following form(s):
177
<UL>
178
<DL>
179
<DT> <B>tix option get</B></I> <I>option</I></B>
180
</I></B>
181
<DD> Returns the current value of <I>option</I></B>.
182
</DL>
183
</UL>
184
<DL>
185
<DT> <B>tix <B>resetoptions</B></I> <I>newScheme newFontSet</I></B> ?<I>newScmPrio</I></B>?
186
</I></B>
187
<DD> Resets the scheme and fontset of the Tix application to
188
<I>newScheme</I></B> and <I>newFontSet</I></B>, respectively. This affects only
189
those widgets created <B>after</B></I> this call. Therefore, it is best to
190
call the <B>resetoptions</B></I> command <B>before</B></I> the creation of any
191
widgets in a Tix application.
192
 
193
The optional parameter <I>newScmPrio</I></B> can be given to reset the
194
priority level of the TK options set by the Tix schemes.
195
</DL>
196
</pre><H3>BUGS</H3>
197
Because of the way TK handles the X option database, after tixwish has
198
started up, it is not possible to reset the color schemes and font
199
sets using the <B>tix config</B></I> command. Instead, the <B>tix
200
resetoptions</B></I> command must be used.
201
<P>
202
The tk_setPalette command does not work very well under Tix. To use
203
it, one must follow these steps:
204
<UL>
205
\fC
206
<pre><code><code><code>
207
 
208
tix resetoptions TK TK
209
tk_setPalette lightblue
210
</code></code></code></pre>
211
</B></I>
212
</UL>
213
</pre><H3>KEYWORDS</H3>
214
file selection dialog
215
<hr><i>Last modified Sun Jan 19 22:34:41 EST 1997 </i> ---
216
<i>Serial 853731308</i>

powered by: WebSVN 2.1.0

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