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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tix/] [man/] [tix.n] - Blame information for rev 1772

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

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1996, Expert Interface Technologies
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
'\" The file man.macros and some of the macros used by this file are
8
'\" copyrighted: (c) 1990 The Regents of the University of California.
9
'\"              (c) 1994-1995 Sun Microsystems, Inc.
10
'\" The license terms of the Tcl/Tk distrobution are in the file
11
'\" license.tcl.
12
.so man.macros
13
.HS tix tix 4.0
14
.BS
15
'
16
.SH NAME
17
tix \- Manipulate Tix internal state
18
'
19
.SH SYNOPSIS
20
\fBtix\fR \fIoption \fR?\fIarg arg ...\fR?
21
'
22
'----------------------------------------------------------------------
23
.SH "CONFIGURATION OPTIONS"
24
'
25
The Tix application context supports the following configuration
26
options. Usually, these options are set using the X resource database,
27
i.e., in the user's \fB\.Xdefault\fR file. For example, to choose a
28
different color scheme for the Tix widgets, these two lines can be
29
added to the user's \fB\.Xdefault\fR file:
30
.PP
31
.nf
32
        *TixScheme:         Gray
33
        *TixFontSet:        14Point
34
.fi
35
'
36
'----------BEGIN
37
.LP
38
.nf
39
Name:           \fBbinding\fR
40
Class:          \fBBinding\fR
41
Switch:         \fB\-binding\fR
42
.fi
43
.IP
44
This is an obsolete option.
45
'----------END
46
'
47
'----------BEGIN
48
.LP
49
.nf
50
Name:           \fBdebug\fR
51
Class:          \fBDebug\fR
52
Switch:         \fB\-debug\fR
53
.fi
54
.IP
55
Specifies whether the Tix widgets should run in debug mode.
56
'----------END
57
'
58
'
59
'----------BEGIN
60
.LP
61
.nf
62
Name:           \fBtixFontSet\fR
63
Class:          \fBTixFontSet\fR
64
Switch:         \fB\-fontset\fR
65
.fi
66
.IP
67
Specifies the fontset to use for the Tix widgets. Valid options are
68
\fBTK\fR, \fB12Point\fR and \fB14Point\fR. \fBTK\fR specifies that the
69
standard TK fonts should be used. The default value is \fB14Point\fR.
70
'----------END
71
'
72
'----------BEGIN
73
.LP
74
.nf
75
Name:           \fBtixScheme\fR
76
Class:          \fBTixScheme\fR
77
Switch:         \fB\-scheme\fR
78
.fi
79
.IP
80
Specifies the color scheme to use for the Tix widgets. Valid options
81
are \fBTK\fR, \fBGray\fR, \fBBlue\fR, \fBBisque\fR, \fBSGIGray\fR and
82
\fBTixGray\fR. The default value is \fBTixGray\fR. If you want the
83
standard TK color scheme, you can use the value \fBTK\fR. If you want
84
to use the TK 3.6 bisque color scheme, you can use the value \fBBisque\fR.
85
'----------END
86
'
87
'
88
'----------BEGIN
89
.LP
90
.nf
91
Name:           \fBtixSchemePriority\fR
92
Class:          \fBTixSchemePriority\fR
93
Switch:         \fB\-schemepriority\fR
94
.fi
95
.IP
96
Specifies the priority level of the TK options set by th Tix
97
schemes. Please refer to the TK \fBoption(n)\fR manual page for a
98
discussion of the priority level of Tix options. The default value is
99
79, which makes the Tix schemes at a higher priority than the
100
settings in the .Xdefaults file. If you want to allow the Tix schemes
101
to be overridden by the settings in the .Xdefaults file, you can set
102
the following line in you .Xdefaults file:
103
.nf
104
*TixSchemePriority: 21
105
.fi
106
'----------END
107
'
108
.BE
109
 
110
.SH DESCRIPTION
111
.PP
112
The \fBtix\fR command provides access to miscellaneous elements of
113
Tix's internal state and the Tix \fBapplication context\fR.  Most of
114
the information manipulated by this command pertains to the
115
application as a whole, or to a screen or display, rather than to a
116
particular window.  The command can take any of a number of different
117
forms depending on the \fIoption\fR argument.  The legal forms are:
118
'
119
.TP
120
\fBtix \fBaddbitmapdir\fR \fIdirectory\fR
121
'
122
Tix maintains a list of directory under which which the \fBtix
123
getimage\fR and \fBtix getbitmap\fR commands will search for image
124
files. The standard bitmap directory is
125
\fB$TIX_LIBRARY/bitmaps\fR. The \fBaddbitmapdir\fR command adds
126
\fIdirectory\fR into this list. By using this command, the image files
127
of an applications can also be located using the \fBtix getimage\fR ot
128
\fBtix getbitmap\fR command.
129
'
130
.TP
131
\fBtix \fBcget\fR \fIoption\fR
132
'
133
Returns the current value of the configuration option given by
134
\fIoption\fR. \fIOption\fR may be any of the options described in the
135
\fBCONFIGURATION OPTIONS\fR section.
136
'
137
.TP
138
\fBtix \fBconfigure\fR ?\fIoption\fR? \fI?value option value ...\fR?
139
'
140
Query or modify the configuration options of the Tix application
141
context. If no \fIoption\fR is specified, returns a list describing
142
all of the available options (see \fBTk_ConfigureInfo\fR for
143
information on the format of this list).  If \fIoption\fR is specified
144
with no \fIvalue\fR, then the command returns a list describing the
145
one named option (this list will be identical to the corresponding
146
sublist of the value returned if no \fIoption\fR is specified).  If
147
one or more \fIoption\-value\fR pairs are specified, then the command
148
modifies the given option(s) to have the given value(s); in this case
149
the command returns an empty string. \fIOption\fR may be any of the
150
options described in the \fBCONFIGURATION OPTIONS\fR section.
151
'
152
'
153
.TP
154
\fBtix filedialog \fR?\fIclass\fR?
155
'
156
Returns the file selection dialog that may be shared among different
157
modules of this application. This command will create a file selection
158
dialog widget when it is called the first time. This dialog will be
159
returned by all subsequent calls to \fBtix filedialog\fR. An optional
160
\fIclass\fR parameter can be passed to specified what type of file
161
selection dialog widget is desired. Possible options are
162
\fBtixFileSelectDialog\fR or \fBtixExFileSelectDialog.\fR
163
'
164
.TP
165
\fBtix getbitmap \fIname\fR
166
'
167
Locates a bitmap file of the name \fIname\fR.xpm or \fIname\fR in one
168
of the bitmap directories (see the \fBaddbitmapdir\fR command
169
above). By using \fBtix getbitmap\fR, you can advoid hard coding the
170
pathnames of the bitmap files in your application. When successful, it
171
returns the complete pathname of the bitmap file, prefixed with the
172
character \fB@\fR.  The returned value can be used to configure the
173
\fB\-bitmap\fR option of the TK and Tix widgets.
174
'
175
.TP
176
\fBtix getimage \fIname\fR
177
'
178
Locates an image file of the name \fIname\fR.xpm, \fIname\fR.xbm or
179
\fIname\fR.ppm in one of the bitmap directories (see the
180
\fBaddbitmapdir\fR command above). If more than one file with the same
181
name (but different extensions) exist, then the image type is chosen
182
according to the depth of the X display: xbm images are chosen on
183
monochrome displays and color images are chosen on color displays. By
184
using \fBtix getimage\fR, you can advoid hard coding the pathnames of
185
the image files in your application. When successful, this command
186
returns the name of the newly created image, which can be used to
187
configure the \fB\-image\fR option of the TK and Tix widgets.
188
'
189
'
190
.TP
191
\fBtix \fBoption\fR ?\fIargs ...\fR?
192
'
193
Manipulates the options manitained by the Tix scheme
194
mechanism. Available options are:
195
 
196
.nf
197
.ta 4c 8c 12c
198
\fCactive_bg\fR \fCactive_fg\fR \fCbg\fR
199
\fCbold_font\fR \fCdark1_bg\fR  \fCdark1_fg\fR
200
\fCdark2_bg\fR  \fCdark2_fg\fR  \fCdisabled_fg\fR
201
\fCfg\fR        \fCfixed_font\fR        \fCfont\fR
202
\fCinactive_bg\fR       \fCinactive_fg\fR       \fCinput1_bg\fR
203
\fCinput2_bg\fR \fCitalic_font\fR       \fClight1_bg\fR
204
\fClight1_fg\fR \fClight2_bg\fR \fClight2_fg\fR
205
\fCmenu_font\fR \fCoutput1_bg\fR        \fCoutput2_bg\fR
206
\fCselect_bg\fR \fCselect_fg\fR \fCselector\fR
207
.ta 4c
208
.fi
209
'
210
 
211
The arguments to the \fBtix \fBoption\fR command can take the
212
following form(s):
213
.RS
214
.TP
215
\fBtix option get\fR \fIoption\fR
216
'
217
Returns the current value of \fIoption\fR.
218
.RE
219
'
220
'
221
.TP
222
\fBtix \fBresetoptions\fR \fInewScheme newFontSet\fR ?\fInewScmPrio\fR?
223
'
224
'
225
Resets the scheme and fontset of the Tix application to
226
\fInewScheme\fR and \fInewFontSet\fR, respectively. This affects only
227
those widgets created \fBafter\fR this call. Therefore, it is best to
228
call the \fBresetoptions\fR command \fBbefore\fR the creation of any
229
widgets in a Tix application.
230
 
231
The optional parameter \fInewScmPrio\fR can be given to reset the
232
priority level of the TK options set by the Tix schemes.
233
'
234
'
235
.SH BUGS
236
'
237
Because of the way TK handles the X option database, after tixwish has
238
started up, it is not possible to reset the color schemes and font
239
sets using the \fBtix config\fR command. Instead, the \fBtix
240
resetoptions\fR command must be used.
241
'
242
.PP
243
The tk_setPalette command does not work very well under Tix. To use
244
it, one must follow these steps:
245
.RS
246
\fC
247
.nf
248
 
249
tix resetoptions TK TK
250
tk_setPalette lightblue
251
.fi
252
\fR
253
.RE
254
'
255
.SH KEYWORDS
256
file selection dialog

powered by: WebSVN 2.1.0

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