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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
'\"
2
'\" Copyright (c) 1995 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
'\" @(#) disjointlistbox.n 1.21 94/12/17 16:04:44
8
'/"
9
.so man.macros
10
.HS disjointlistbox iwid
11
.BS
12
'\" Note:  do not modify the .SH NAME line immediately below!
13
.SH NAME
14
disjointlistbox \- Create and manipulate a disjointlistbox widget
15
.SH SYNOPSIS
16
\fBdisjointlistbox\fI \fIpathName \fR?\fIoptions\fR?
17
.SH "INHERITANCE"
18
itk::Widget <- Disjointlistbox
19
.SH "STANDARD OPTIONS"
20
.LP
21
.nf
22
.ta 4c 8c 12c
23
\fBactiveBackground\fR   \fBselectBorderWidth\fR  \fBselectForeground\fR
24
\fBactiveForeground\fR   \fBactiveRelief\fR       \fBbackground\fR
25
\fBborderWidth\fR        \fBbuttonPlacement\fR    \fBclientData\fR
26
\fBcursor\fR             \fBforeground\fR         \fBhighlightColor\fR
27
\fBhighlightThickness\fR \fBdisabledForeground\fR \fBelementBorderWidth\fR
28
.fi
29
.LP
30
See the "options" manual entry for details on the standard options.
31
.SH "ASSOCIATED OPTIONS"
32
.LP
33
.nf
34
.ta 4c 8c 12c
35
\fBlhsButtonLabel\fR \fBrhsButtonLabel\fR
36
.fi
37
.LP
38
See the "button" widget manual entry for details on the above
39
associated options.
40
.LP
41
.nf
42
.ta 4c 8c 12c
43
\fBlabelFont\fR \fBlhsLabelText\fR \fBrhsLabelText\fR
44
.fi
45
.LP
46
See the "label" widget manual entry for details on the above
47
associated options.
48
.LP
49
.nf
50
.ta 4c 8c 12c
51
\fBjump\fR \fBtroughColor\fR
52
.fi
53
.LP
54
See the "scrollbar" widget class manual entry for details on the above
55
associated options.
56
.LP
57
.nf
58
.ta 4c 8c 12c
59
\fBtextBackground\fR \fBtextFont\fR
60
\fBlhsItems\fR \fBrhsItems\fR
61
.fi
62
.LP
63
See the "scrolledlistbox" widget manual entry for details on the above
64
associated options.
65
.SH "WIDGET-SPECIFIC OPTIONS"
66
.LP
67
.nf
68
Name:   \fBbuttonPlacement\fR
69
Class:  \fBButtonPlacement\fR
70
Command-Line Switch:    \fB-buttonplacement\fR
71
.fi
72
.IP
73
Specifies the placement of the insertion and removal buttons relative to the
74
scrolledlistbox widgets\fBn\fR,
75
\fBbottom\fR, or \fBcenter\fR.  The default is bottom.
76
.LP
77
.nf
78
Name:   \fBlhsLabelText\fR
79
Class:  \fBLabelText\fR
80
Command-Line Switch:    \fB-lhslabeltext\fR
81
.fi
82
.IP
83
Specifies the text for the label of the lhs scrolledlistbox.
84
The default is "Available".
85
.LP
86
.nf
87
Name:   \fBrhsLabelText\fR
88
Class:  \fBLabelText\fR
89
Command-Line Switch:    \fB-rhslabeltext\fR
90
.fi
91
.IP
92
Specifies the text for the label of the rhs scrolledlistbox.
93
The default is "Available".
94
.LP
95
.nf
96
Name:   \fBlhsButtonLabel\fR
97
Class:  \fBLabelText\fR
98
Command-Line Switch:    \fB-lhsbuttonlabel\fR
99
.fi
100
.IP
101
Specifies the text for the button of the lhs scrolledlistbox.
102
The default is "Insert >>".
103
.LP
104
.nf
105
Name:   \fBrhsButtonLabel\fR
106
Class:  \fBLabelText\fR
107
Command-Line Switch:    \fB-rhsbuttonlabel\fR
108
.fi
109
.IP
110
Specifies the text for the button of the rhs scrolledlistbox.
111
The default is "<< Remove".
112
.LP
113
.BE
114
.SH DESCRIPTION
115
.PP
116
The \fBdisjointlistbox\fR command creates a disjoint pair of listboxs
117
similar to the OSF/Motif "Book" printing dialog of the "FrameMaker"
118
program.  It is implementation constists of a two Scrolledlistboxs,
119
2 buttons, and 2 labels.
120
 
121
The disjoint behavior of this widget exists between the interaction of
122
the two Scrolledlistboxes with one another.  That is, a given instance
123
of a Disjointlistbox will never exist, without the aid of a hack magician,
124
which has Scrolledlistbox widgets with items in common.  That means the
125
relationship between the two is maintained similar to that of disjoint sets.
126
 
127
Users may transfer items between the two Listbox widgets using the
128
the two buttons.
129
 
130
Options exists which include the ability to configure the "items" displayed by
131
the 2 Scrolledlistboxes and to control the placement of the insertion and
132
removal buttons.
133
.SH "METHODS"
134
.PP
135
The \fBdisjointlistbox\fR command creates a new Tcl command whose
136
name is \fIpathName\fR.  This command may be used to invoke various
137
operations on the widget.  It has the following general form:
138
.DS C
139
\fIpathName option \fR?\fIarg arg ...\fR?
140
.DE
141
\fIOption\fR and the \fIarg\fRs
142
determine the exact behavior of the command.  The following
143
commands are possible for disjointlistbox widgets:
144
 
145
.SH "WIDGET-SPECIFIC METHODS"
146
.TP
147
\fIpathName \fBcget\fR \fIoption\fR
148
Returns the current value of the configuration option given
149
by \fIoption\fR.
150
\fIOption\fR may have any of the values accepted by the \fBdisjointlistbox\fR
151
command.
152
.TP
153
\fIpathName\fR \fBconfigure\fR ?\fIoption\fR? ?\fIvalue option value ...\fR?
154
Query or modify the configuration options of the widget.
155
If no \fIoption\fR is specified, returns a list describing all of
156
the available options for \fIpathName\fR (see \fBTk_ConfigureInfo\fR for
157
information on the format of this list).  If \fIoption\fR is specified
158
with no \fIvalue\fR, then the command returns a list describing the
159
one named option (this list will be identical to the corresponding
160
sublist of the value returned if no \fIoption\fR is specified).  If
161
one or more \fIoption\-value\fR pairs are specified, then the command
162
modifies the given widget option(s) to have the given value(s);  in
163
this case the command returns an empty string.
164
\fIOption\fR may have any of the values accepted by the \fBdisjointlistbox\fR
165
command.
166
.TP
167
\fIpathName \fBsetlhs\fR
168
Set the current contents of the left-most Scrolledlistbox with the input list
169
of items.  Removes all (if any) items from the right-most Scrolledlistbox
170
which exist in the input list option to maintain the disjoint property
171
between the two
172
.TP
173
\fIpathName \fBsetrhs\fR
174
Set the current contents of the right-most Scrolledlistbox with the input list
175
of items.  Removes all (if any) items from the left-most Scrolledlistbox
176
which exist in the input list option to maintain the disjoint property
177
between the two
178
.TP
179
\fIpathName \fBgetlhs\fR
180
Returns the current contents of the left-most Scrolledlistbox
181
.TP
182
\fIpathName \fBgetrhs\fR
183
Returns the current contents of the right-most Scrolledlistbox
184
.TP
185
\fIpathName \fBinsertlhs\fR
186
Add the input list of items to the current contents of the left-most
187
Scrolledlistbox.  Removes all (if any) items from the right-most Scrolledlistbox
188
which exist in the input list option to maintain the disjoint property
189
between the two
190
.TP
191
\fIpathName \fBinsertrhs\fR
192
Add the input list of items to the current contents of the right-most
193
Scrolledlistbox.  Removes all (if any) items from the left-most Scrolledlistbox
194
which exist in the input list option to maintain the disjoint property
195
between the two.
196
.TP
197
.SH "COMPONENTS"
198
.LP
199
.nf
200
Name:   \fBlhs\fR
201
Class:  \fBScrolledlistbox\fR
202
.fi
203
.IP
204
The lhs component is the scrolledlistbox for the rhs button.
205
See the "scrolledlistbox" widget manual entry for details on the lhs
206
component item.
207
.LP
208
.nf
209
Name:   \fBrhs\fR
210
Class:  \fBScrolledlistbox\fR
211
.fi
212
.IP
213
The rhs component is the scrolledlistbox for the rhs button.
214
See the "scrolledlistbox" widget manual entry for details on the rhs
215
component item.
216
.LP
217
.nf
218
Name:   \fBlhsbutton\fR
219
Class:  \fButton\fR
220
.fi
221
.IP
222
The lhsbutton component is the button for users to remove selected items
223
from the lhs Scrolledlistbox.
224
See the "button" widget manual entry for details  on the lhs button component.
225
.LP
226
.nf
227
Name:   \fBrhsbutton\fR
228
Class:  \fBButton\fR
229
.fi
230
.IP
231
The rhsbutton component is the button for users to remove selected items
232
from the rhs Scrolledlistbox.
233
See the "button" widget manual entry for details  on the rhs button component.
234
.LP
235
.nf
236
Name:   \fBlhsCount\fR
237
Class:  \fBLabel\fR
238
.fi
239
.IP
240
The lhsCount component is the label for displaying a count of the current items in
241
the Scrolledlistbox.
242
See the "Label" widget manual entry for details  on the lhsCount label component.
243
.LP
244
.nf
245
Name:   \fBrhsCount\fR
246
Class:  \fBLabel\fR
247
.fi
248
.IP
249
The rhsCount component is the label for displaying a count of the current items in
250
the Scrolledlistbox.
251
See the "Label" widget manual entry for details  on the rhsCount label component.
252
.fi
253
.IP
254
.SH EXAMPLE
255
.DS
256
disjointlistbox .dlb
257
pack .dlb -padx 10 -pady 10 -fill both -expand yes
258
.DE
259
.SH AUTHOR(S)
260
John A. Tucker
261
.DE
262
Anthony Parent
263
.SH KEYWORDS
264
disjointlistbox, widget

powered by: WebSVN 2.1.0

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