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

Subversion Repositories or1k

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

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
'----------------------------------------------------------------------
14
.HS tixCheckList tix 4.0
15
.BS
16
'
17
'
18
'----------------------------------------------------------------------
19
.SH NAME
20
tixCheckList \- Create and manipulate tixCheckList widgets
21
'
22
'
23
'
24
'----------------------------------------------------------------------
25
.SH SYNOPSIS
26
\fBtixCheckList\fI \fIpathName ?\fIoptions\fR?
27
'
28
'
29
'----------------------------------------------------------------------
30
.PP
31
.SH SUPER-CLASS
32
The \fBTixCheckList\fR class is derived from the \fBTixTree\fR class
33
and inherits all the commands, options and subwidgets of its
34
super-class.
35
'
36
'----------------------------------------------------------------------
37
.SH "STANDARD OPTIONS"
38
'
39
\fBTixCheckList\fR supports all the standard options of a frame
40
widget. See the \fBoptions(n)\fR manual entry for details on the
41
standard options.
42
'
43
'
44
'----------------------------------------------------------------------
45
.SH "WIDGET-SPECIFIC OPTIONS"
46
'
47
'----------BEGIN
48
.LP
49
.nf
50
Name:           \fBbrowseCmd\fR
51
Class:          \fBBrowseCmd\fR
52
Switch:         \fB\-browsecmd\fR
53
.fi
54
.IP
55
Specifies a command to call whenever the user browses on an entry
56
(usually by single-clicking on the entry). The command is called with
57
one argument, the pathname of the entry.
58
'----------END
59
'
60
'----------BEGIN
61
.LP
62
.nf
63
Name:           \fBcommand\fR
64
Class:          \fBCommand\fR
65
Switch:         \fB\-command\fR
66
.fi
67
.IP
68
Specifies a command to call whenever the user activates an entry
69
(usually by double-clicking on the entry). The command
70
is called with one argument, the pathname of the entry.
71
'----------END
72
'
73
'----------BEGIN
74
.LP
75
.nf
76
Name:           \fBradio\fR
77
Class:          \fBRadio\fR
78
Switch:         \fB\-radio\fR
79
.fi
80
.IP
81
A Boolean value. If set to true, the user can select at most one item
82
at a time; if set to false, the user can select as many items as
83
possible.
84
'----------END
85
'
86
'
87
'----------------------------------------------------------------------
88
.SH SUBWIDGETS
89
'----------BEGIN
90
.LP
91
.nf
92
Name:           \fBhlist\fR
93
Class:          \fBTixHList\fR
94
.fi
95
.IP
96
The hierarchical listbox that displays the CheckList.
97
'----------END
98
'
99
'----------BEGIN
100
.LP
101
.nf
102
Name:           \fBhsb\fR
103
Class:          \fBScrollbar\fR
104
.fi
105
.IP
106
The horizontal scrollbar subwidget.
107
'----------END
108
'
109
'----------BEGIN
110
.LP
111
.nf
112
Name:           \fBvsb\fR
113
Class:          \fBScrollbar\fR
114
.fi
115
.IP
116
The vertical scrollbar subwidget.
117
'----------END
118
'
119
.BE
120
'
121
'
122
'----------------------------------------------------------------------
123
.SH DESCRIPTION
124
'
125
.PP
126
'
127
The \fBtixCheckList\fR command creates a new window (given by the
128
\fIpathName\fR argument) and makes it into a CheckList widget.
129
Additional options, described above, may be specified on the command
130
line or in the option database to configure aspects of the CheckList
131
widget such as its cursor and relief.
132
 
133
The CheckList widget displays a list of items to be selected by the
134
user. CheckList acts similarly to the Tk checkbutton or radiobutton
135
widgets, except it is capable of handling many more items than
136
checkbuttons or radiobuttons.
137
 
138
The items are contained in the \fBhlist\fR subwidget.  Each item may
139
be in one of the following status: \fBon\fR (indicated by a check
140
bitmap), \fBoff\fR (indicated by a cross bitmap) \fBdefault\fR
141
(indicated by a gray box bitmap) or \fBnone\fR, in which case the item
142
will not be accompanied by a bitmap. The items whose status is
143
\fBon\fR, \fBoff\fR or \fBdefault\fR are called the \fIselectable\fR
144
items and can be checked or crossed by the user. All selectable
145
entries must be of the type \fBimagetext\fR.
146
 
147
The items whose status is \fBnone\fR cannot be checked or crossed by
148
the user; usually they are included in the \fBhlist\fR subwidget only
149
for explanation purposes or as separators.
150
 
151
Initially, all the items have a \fInone\fR status. To make an item
152
selectable, you can call the \fBsetstatus\fR command to change its
153
status (see below).
154
'
155
 
156
Notice that CheckList is a subclass of the TixTree widget and thus is
157
is capable of displaying a hierachy of selectable entries. When
158
necessary, you can call the \fBsetmode\fR method (see
159
\fBTixTree(n)\fR) to define the hierachical structure of the
160
selectable entries.
161
'
162
'----------------------------------------------------------------------
163
.SH WIDGET COMMANDS
164
.PP
165
'
166
The \fBtixCheckList\fR command creates a new Tcl command whose name is
167
the same as the path name of the CheckList's window.  This command may
168
be used to invoke various operations on the widget. It has the
169
following general form:
170
'
171
.DS C
172
'
173
\fIpathName option \fR?\fIarg arg ...\fR?
174
.PP
175
.DE
176
'
177
\fIPathName\fR is the name of the command, which is the same as the
178
CheckList widget's path name. \fIOption\fR and the \fIarg\fRs
179
determine the exact behavior of the command. The following commands
180
are possible for CheckList widgets:
181
'
182
.TP
183
\fIpathName \fBgetselection\fR ?\fIstatus\fR?
184
'
185
Returns a list of items whose status matches \fIstatus\fR. If
186
\fIstatus\fR is not specified, the list of items in the "\fBon\fR"
187
status will be returned.
188
'
189
.TP
190
\fIpathName \fBgetstatus\fR \fIentryPath\fR
191
'
192
Returns the current status of \fIentryPath\fR.
193
'
194
.TP
195
\fIpathName \fBsetstatus\fR \fIentryPath status\fR
196
'
197
Sets the status of \fIentryPath\fR to be \fIstatus\fR. A bitmap will
198
be displayed next to the entry its status is \fBon\fR, \fBoff\fR or
199
\fBdefault\fR.
200
'
201
'
202
.TP
203
\fIpathName \fBsubwidget \fI name ?args?\fR
204
'
205
When no options are given, this command returns the pathname of the
206
subwidget of the specified name.
207
 
208
When options are given, the widget command of the specified subwidget
209
will be called with these options.
210
'
211
'----------------------------------------------------------------------
212
.SH EXAMPLE
213
'
214
.PP
215
This example creates several choices for the user to select.
216
.PP
217
\fC
218
.nf
219
 tixCheckList .c
220
 .c subwidget hlist add choice1 -itemtype imagetext -text "Choice 1"
221
 .c subwidget hlist add choice2 -itemtype imagetext -text "Choice 2"
222
 .c subwidget hlist add choice3 -itemtype imagetext -text "Choice 3"
223
 .c setstatus choice1 on
224
 .c setstatus choice2 off
225
 .c setstatus choice3 off
226
 pack .c
227
.fi
228
\fR
229
'
230
'----------------------------------------------------------------------
231
.SH BINDINGS
232
.PP
233
'
234
The basic mouse and keyboard bindings of the CheckList widget are the
235
same as the bindings of the TixTree widget.
236
 
237
In addition, the status of the entries in the CheckList are toggled
238
under the following conditions:
239
'
240
.IP [1]
241
When the user press the mouse button over an entry.
242
'
243
.IP [2]
244
When the user press the  key over an entry.
245
'
246
.IP [3]
247
When the user press the  key over an entry.
248
'
249
'
250
'----------------------------------------------------------------------
251
.SH KEYWORDS
252
Tix(n), tixHList(n), tixTree(n)

powered by: WebSVN 2.1.0

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