author | Claus Gittinger <cg@exept.de> |
Fri, 11 Feb 2000 15:56:08 +0100 | |
changeset 1696 | f1bae6d68ffe |
parent 1648 | aed7d8a7097c |
child 1713 | 4c3750017ccd |
permissions | -rw-r--r-- |
1281 | 1 |
" |
2 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
13 |
||
14 |
||
1224 | 15 |
View subclass:#ExtendedComboBox |
16 |
instanceVariableNames:'menuButton menuField menuWrapper adjust menuWidgetHolder |
|
1274 | 17 |
menuWidget menuHeight openAction isReadOnly |
18 |
usePreferredWidthForMenu hasHorizontalScrollBar |
|
19 |
hasVerticalScrollBar miniScrollerHorizontal miniScrollerVertical |
|
20 |
autoHideScrollBars' |
|
1179 | 21 |
classVariableNames:'' |
22 |
poolDictionaries:'' |
|
23 |
category:'Views-Interactors' |
|
24 |
! |
|
25 |
||
1273 | 26 |
PopUpView subclass:#MenuWrapper |
1630 | 27 |
instanceVariableNames:'comboBox widget lastPointerView implicitGrabView' |
1179 | 28 |
classVariableNames:'' |
29 |
poolDictionaries:'' |
|
30 |
privateIn:ExtendedComboBox |
|
31 |
! |
|
32 |
||
1224 | 33 |
!ExtendedComboBox class methodsFor:'documentation'! |
34 |
||
1281 | 35 |
copyright |
36 |
" |
|
37 |
COPYRIGHT (c) 1998 by eXept Software AG |
|
38 |
All Rights Reserved |
|
39 |
||
40 |
This software is furnished under a license and may be used |
|
41 |
only in accordance with the terms of that license and with the |
|
42 |
inclusion of the above copyright notice. This software may not |
|
43 |
be provided or otherwise made available to, or used by, any |
|
44 |
other person. No title to or ownership of the software is |
|
45 |
hereby transferred. |
|
46 |
" |
|
47 |
||
48 |
||
49 |
! |
|
50 |
||
51 |
documentation |
|
52 |
" |
|
53 |
An ExtendedComboBox looks much like a ComboBox, but allows for any view |
|
54 |
to be popped up (in contrast to a ComboBox, which has a hardWired selectionInList- |
|
55 |
menu). |
|
56 |
The popped view may optionally be decorated with scrollBars. |
|
57 |
As a side effect, an ExtendedComboBox with a SelectionInListView or Menu |
|
58 |
can now be used as a replacement for ComboBoxes when long-lists are to be shown, |
|
59 |
since those can now be scrolled. |
|
60 |
||
61 |
[author:] |
|
62 |
Claus Atzkern |
|
63 |
||
64 |
[see also:] |
|
65 |
ComboBox ComboView |
|
66 |
PopUpList SelectionInListView |
|
67 |
ComboListView |
|
68 |
PullDownMenu Label EntryField |
|
69 |
" |
|
70 |
||
71 |
! |
|
72 |
||
1224 | 73 |
examples |
74 |
" |
|
75 |
example 1: SelectionInListView |
|
76 |
[exBegin] |
|
77 |
|top menu widget list sidx| |
|
78 |
||
79 |
top := StandardSystemView extent:200@35. |
|
80 |
menu := ExtendedComboBox origin:5 @ 5 corner:1.0 @ 0.0 in:top. |
|
81 |
list := #('foo' 'bar' 'baz' 'hjh' 'kk' 'claus' 'gjhj'). |
|
82 |
sidx := 4. |
|
83 |
menu bottomInset:(menu preferredExtent y negated). |
|
84 |
menu contents:(list at:sidx). |
|
85 |
||
86 |
widget := SelectionInListView new. |
|
87 |
widget list:list. |
|
88 |
widget doubleClickAction:[:i| menu contents:(widget at:i) ]. |
|
89 |
widget selection:sidx. |
|
90 |
menu menuWidget:widget. |
|
91 |
top open. |
|
92 |
[exEnd] |
|
93 |
||
94 |
||
95 |
||
96 |
example 2: FileSelectionTree |
|
97 |
[exBegin] |
|
98 |
|top menu widget| |
|
99 |
||
100 |
top := StandardSystemView extent:200@35. |
|
101 |
menu := ExtendedComboBox origin:5 @ 5 corner:1.0 @ 0.0 in:top. |
|
102 |
menu bottomInset:(menu preferredExtent y negated). |
|
103 |
||
104 |
widget := FileSelectionTree new. |
|
105 |
widget directory:(Filename homeDirectory). |
|
106 |
||
107 |
widget doubleClickAction:[:i||n| |
|
108 |
n := widget selectedNode. |
|
109 |
n isDirectory ifFalse:[menu contents:(n pathName)] |
|
110 |
]. |
|
111 |
menu menuHeight:400. |
|
112 |
menu menuWidget:widget. |
|
113 |
top open. |
|
114 |
[exEnd] |
|
115 |
||
116 |
||
117 |
||
1286 | 118 |
example 3: SelectionInTreeView |
1224 | 119 |
[exBegin] |
120 |
|top menu widget| |
|
121 |
||
122 |
top := StandardSystemView extent:200@35. |
|
123 |
menu := ExtendedComboBox origin:5 @ 5 corner:1.0 @ 0.0 in:top. |
|
124 |
menu bottomInset:(menu preferredExtent y negated). |
|
125 |
menu contents:'foo'. |
|
126 |
||
127 |
widget := SelectionInTreeView new. |
|
128 |
widget root:(TreeItem newAsTreeFromSmalltalkClass:Object). |
|
129 |
||
130 |
widget doubleClickAction:[:i||n| |
|
131 |
n := widget selectedNode. |
|
132 |
n hasChildren ifFalse:[menu contents:(n name)] |
|
133 |
]. |
|
134 |
menu menuHeight:300. |
|
135 |
menu menuWidget:widget. |
|
136 |
top open. |
|
137 |
[exEnd] |
|
138 |
||
1282
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
139 |
example 3: Funny |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
140 |
[exBegin] |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
141 |
|top menu widget| |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
142 |
|
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
143 |
top := StandardSystemView extent:250@35. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
144 |
menu := ExtendedComboBox origin:5 @ 5 corner:1.0 @ 0.0 in:top. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
145 |
menu bottomInset:(menu preferredExtent y negated). |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
146 |
menu contents:'lets do the timeWarp again...'. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
147 |
|
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
148 |
widget := ClockView new. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
149 |
menu menuHeight:[widget width]. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
150 |
menu menuWidget:widget. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
151 |
top open. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
152 |
[exEnd] |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
153 |
|
1285
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
154 |
|
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
155 |
example 3: Funny - again |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
156 |
(use widgets pref-width; even if the combo-box is smaller) |
1282
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
157 |
[exBegin] |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
158 |
|top menu widget| |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
159 |
|
1284 | 160 |
top := StandardSystemView extent:80@35. |
1282
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
161 |
menu := ExtendedComboBox origin:5 @ 5 corner:1.0 @ 0.0 in:top. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
162 |
menu bottomInset:(menu preferredExtent y negated). |
1284 | 163 |
menu contents:'time...'. |
1282
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
164 |
|
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
165 |
widget := ClockView new. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
166 |
menu menuWidget:widget. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
167 |
menu usePreferredWidthForMenu:true. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
168 |
top open. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
169 |
[exEnd] |
1224 | 170 |
|
1285
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
171 |
|
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
172 |
example 4: Funny - again |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
173 |
(use widgets pref-width; even if the combo-box is smaller, |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
174 |
adjust the height for the width) |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
175 |
[exBegin] |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
176 |
|top menu widget| |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
177 |
|
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
178 |
top := StandardSystemView extent:80@35. |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
179 |
menu := ExtendedComboBox origin:5 @ 5 corner:1.0 @ 0.0 in:top. |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
180 |
menu bottomInset:(menu preferredExtent y negated). |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
181 |
menu contents:'time...'. |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
182 |
|
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
183 |
widget := ClockView new. |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
184 |
menu menuWidget:widget. |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
185 |
menu usePreferredWidthForMenu:true. |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
186 |
menu menuHeight:[widget width]. |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
187 |
top open. |
839acde3f42c
fixed width when usePrefWidgetWidth is true
Claus Gittinger <cg@exept.de>
parents:
1284
diff
changeset
|
188 |
[exEnd] |
1406 | 189 |
|
190 |
example 5: Subcanvas with a spec |
|
191 |
[exBegin] |
|
192 |
|top menu widget list sidx spec| |
|
193 |
||
194 |
spec := #(#FullSpec |
|
195 |
#window: |
|
196 |
#(#WindowSpec |
|
197 |
#name: 'Define Color' |
|
198 |
#layout: #(#LayoutFrame 13 0 29 0 352 0 159 0) |
|
199 |
#label: 'Define Color' |
|
200 |
#min: #(#Point 340 110) |
|
201 |
#max: #(#Point 1152 900) |
|
202 |
#bounds: #(#Rectangle 13 29 353 160) |
|
203 |
#usePreferredExtent: false |
|
204 |
) |
|
205 |
#component: |
|
206 |
#(#SpecCollection |
|
207 |
#collection: |
|
208 |
#( |
|
209 |
#(#VerticalPanelViewSpec |
|
210 |
#name: 'VerticalPanel1' |
|
211 |
#layout: #(#LayoutFrame 0 0.0 0 0.0 58 0 -40 1.0) |
|
212 |
#component: |
|
213 |
#(#SpecCollection |
|
214 |
#collection: |
|
215 |
#( |
|
216 |
#(#LabelSpec |
|
217 |
#name: 'RedLabel' |
|
218 |
#label: 'Red:' |
|
219 |
#translateLabel: true |
|
220 |
#adjust: #right |
|
221 |
#extent: #(#Point 58 26) |
|
222 |
) |
|
223 |
#(#LabelSpec |
|
224 |
#name: 'GreenLabel' |
|
225 |
#label: 'Green:' |
|
226 |
#translateLabel: true |
|
227 |
#adjust: #right |
|
228 |
#extent: #(#Point 58 27) |
|
229 |
) |
|
230 |
#(#LabelSpec |
|
231 |
#name: 'BlueLabel' |
|
232 |
#label: 'Blue:' |
|
233 |
#translateLabel: true |
|
234 |
#adjust: #right |
|
235 |
#extent: #(#Point 58 26) |
|
236 |
) |
|
237 |
) |
|
238 |
) |
|
239 |
#horizontalLayout: #fit |
|
240 |
#verticalLayout: #fitSpace |
|
241 |
#horizontalSpace: 3 |
|
242 |
#verticalSpace: 3 |
|
243 |
) |
|
244 |
#(#VerticalPanelViewSpec |
|
245 |
#name: 'VerticalPanel2' |
|
246 |
#layout: #(#LayoutFrame 60 0 0 0.0 -160 1.0 -40 1.0) |
|
247 |
#component: |
|
248 |
#(#SpecCollection |
|
249 |
#collection: |
|
250 |
#( |
|
251 |
#(#SliderSpec |
|
252 |
#name: 'RedSlider' |
|
253 |
#tabable: true |
|
254 |
#model: #red |
|
255 |
#orientation: #horizontal |
|
256 |
#stop: 255 |
|
257 |
#step: 1 |
|
258 |
#backgroundColor: #(#Color 100.0 0.0 0.0) |
|
259 |
#extent: #(#Point 118 16) |
|
260 |
) |
|
261 |
#(#SliderSpec |
|
262 |
#name: 'GreenSlider' |
|
263 |
#tabable: true |
|
264 |
#model: #green |
|
265 |
#orientation: #horizontal |
|
266 |
#stop: 255 |
|
267 |
#step: 1 |
|
268 |
#backgroundColor: #(#Color 0.0 100.0 0.0) |
|
269 |
#extent: #(#Point 118 16) |
|
270 |
) |
|
271 |
#(#SliderSpec |
|
272 |
#name: 'BlueSlider' |
|
273 |
#tabable: true |
|
274 |
#model: #blue |
|
275 |
#orientation: #horizontal |
|
276 |
#stop: 255 |
|
277 |
#step: 1 |
|
278 |
#backgroundColor: #(#Color 0.0 0.0 100.0) |
|
279 |
#extent: #(#Point 118 16) |
|
280 |
) |
|
281 |
) |
|
282 |
) |
|
283 |
#horizontalLayout: #fit |
|
284 |
#verticalLayout: #spreadSpace |
|
285 |
#horizontalSpace: 3 |
|
286 |
#verticalSpace: 3 |
|
287 |
) |
|
288 |
#(#VerticalPanelViewSpec |
|
289 |
#name: 'VerticalPanel3' |
|
290 |
#layout: #(#LayoutFrame -158 1 0 0.0 -120 1 -40 1.0) |
|
291 |
#component: |
|
292 |
#(#SpecCollection |
|
293 |
#collection: |
|
294 |
#( |
|
295 |
#(#InputFieldSpec |
|
296 |
#name: 'RedField' |
|
297 |
#model: #red |
|
298 |
#type: #numberInRange |
|
299 |
#numChars: 3 |
|
300 |
#minValue: 0 |
|
301 |
#maxValue: 255 |
|
302 |
#extent: #(#Point 38 20) |
|
303 |
) |
|
304 |
#(#InputFieldSpec |
|
305 |
#name: 'GreenField' |
|
306 |
#model: #green |
|
307 |
#type: #numberInRange |
|
308 |
#numChars: 3 |
|
309 |
#minValue: 0 |
|
310 |
#maxValue: 255 |
|
311 |
#extent: #(#Point 38 20) |
|
312 |
) |
|
313 |
#(#InputFieldSpec |
|
314 |
#name: 'BlueField' |
|
315 |
#model: #blue |
|
316 |
#type: #numberInRange |
|
317 |
#numChars: 3 |
|
318 |
#minValue: 0 |
|
319 |
#maxValue: 255 |
|
320 |
#extent: #(#Point 38 20) |
|
321 |
) |
|
322 |
) |
|
323 |
) |
|
324 |
#horizontalLayout: #fit |
|
325 |
#verticalLayout: #spreadSpace |
|
326 |
#horizontalSpace: 3 |
|
327 |
#verticalSpace: 3 |
|
328 |
) |
|
329 |
#(#LabelSpec |
|
330 |
#name: 'PreviewBox' |
|
331 |
#layout: #(#LayoutFrame -116 1 0 0.0 -2 1.0 -40 1.0) |
|
332 |
#label: 'Preview' |
|
333 |
#translateLabel: true |
|
334 |
#level: -1 |
|
335 |
) |
|
336 |
#(#HorizontalPanelViewSpec |
|
337 |
#name: 'HorizontalPanel1' |
|
338 |
#layout: #(#LayoutFrame 0 0.0 -32 1 0 1.0 0 1.0) |
|
339 |
#component: |
|
340 |
#(#SpecCollection |
|
341 |
#collection: |
|
342 |
#( |
|
343 |
#(#ActionButtonSpec |
|
344 |
#name: 'CancelButton' |
|
345 |
#label: 'Cancel' |
|
346 |
#translateLabel: true |
|
347 |
#model: #cancel |
|
348 |
#extent: #(#Point 165 26) |
|
349 |
) |
|
350 |
#(#ActionButtonSpec |
|
351 |
#name: 'OKButton' |
|
352 |
#label: 'OK' |
|
353 |
#translateLabel: true |
|
354 |
#model: #accept |
|
355 |
#extent: #(#Point 166 26) |
|
356 |
) |
|
357 |
) |
|
358 |
) |
|
359 |
#horizontalLayout: #fitSpace |
|
360 |
#verticalLayout: #centerMax |
|
361 |
#horizontalSpace: 3 |
|
362 |
#verticalSpace: 3 |
|
363 |
) |
|
364 |
) |
|
365 |
) |
|
366 |
). |
|
367 |
||
368 |
top := StandardSystemView extent:200@35. |
|
369 |
menu := ExtendedComboBox origin:5 @ 5 corner:1.0 @ 0.0 in:top. |
|
370 |
list := #('foo' 'bar' 'baz' 'hjh' 'kk' 'claus' 'gjhj'). |
|
371 |
sidx := 4. |
|
372 |
menu bottomInset:(menu preferredExtent y negated). |
|
373 |
menu contents:(list at:sidx). |
|
374 |
||
375 |
widget := SubCanvas new. |
|
376 |
widget spec:spec. |
|
377 |
menu menuWidget:widget. |
|
378 |
top open. |
|
379 |
[exEnd] |
|
380 |
||
381 |
||
382 |
||
383 |
||
1224 | 384 |
" |
385 |
! ! |
|
1179 | 386 |
|
387 |
!ExtendedComboBox class methodsFor:'testing'! |
|
388 |
||
1224 | 389 |
test |
1179 | 390 |
" |
1224 | 391 |
self test |
1179 | 392 |
" |
1224 | 393 |
|top menu| |
1179 | 394 |
|
1224 | 395 |
top := StandardSystemView extent:200@35. |
396 |
menu := ExtendedComboBox origin:5 @ 5 corner:0.8 @ 0.0 in:top. |
|
397 |
menu bottomInset:(menu preferredExtent y negated). |
|
398 |
menu list:#('foo' 'bar' 'baz' 'hjh' 'kk' 'claus' 'gjhj'). |
|
399 |
top open. |
|
1179 | 400 |
! |
401 |
||
1224 | 402 |
test1 |
1179 | 403 |
" |
1224 | 404 |
self test1 |
1179 | 405 |
" |
1224 | 406 |
|top menu| |
1179 | 407 |
|
1224 | 408 |
top := StandardSystemView extent:200@35. |
409 |
menu := ExtendedComboBox origin:5 @ 5 corner:1.0 @ 0.0 in:top. |
|
410 |
menu bottomInset:(menu preferredExtent y negated). |
|
1395 | 411 |
menu directory:(OperatingSystem getHomeDirectory). |
1224 | 412 |
top open. |
1179 | 413 |
|
1395 | 414 |
"Modified: / 25.5.1999 / 15:16:16 / cg" |
1630 | 415 |
! |
416 |
||
417 |
test10 |
|
418 |
" |
|
419 |
self test10 |
|
420 |
" |
|
421 |
|top menu view o| |
|
422 |
||
423 |
top := StandardSystemView extent:300@35. |
|
424 |
menu := ExtendedComboBox origin:0.0@0.0 corner:1.0@1.0 in:top. |
|
425 |
||
426 |
view := DrawView new. |
|
427 |
o := DrawRectangle new. |
|
428 |
o origin:10@10 corner:100@100. |
|
429 |
view add:o. |
|
430 |
||
431 |
o := DrawText new. |
|
432 |
o text:'hello there'; origin:50@50; foreground:Color red. |
|
433 |
view add:o. |
|
434 |
||
435 |
||
436 |
menu menuWidget:view. |
|
437 |
menu menuHeight:300. |
|
438 |
top open. |
|
439 |
||
440 |
! |
|
441 |
||
442 |
test2 |
|
443 |
" |
|
444 |
self test2 |
|
445 |
" |
|
446 |
|top menu view edit| |
|
447 |
||
448 |
top := StandardSystemView extent:200@35. |
|
449 |
menu := ExtendedComboBox origin:5 @ 5 corner:195 @ 25 in:top. |
|
450 |
view := View extent:180 @ 100. |
|
451 |
edit := EditField origin:5@5 in:view. |
|
452 |
edit width:175. |
|
453 |
||
454 |
edit := EditField origin:5@30 in:view. |
|
455 |
edit width:175. |
|
456 |
||
457 |
menu menuWidget:view. |
|
458 |
menu menuHeight:100. |
|
459 |
top open. |
|
460 |
||
461 |
"Modified: / 25.5.1999 / 15:16:16 / cg" |
|
462 |
! |
|
463 |
||
464 |
test3 |
|
465 |
" |
|
466 |
self test3 |
|
467 |
" |
|
468 |
|top menu view edit b| |
|
469 |
||
470 |
top := StandardSystemView extent:200@35. |
|
471 |
menu := ExtendedComboBox origin:5 @ 5 corner:195 @ 25 in:top. |
|
472 |
view := View extent:180 @ 100. |
|
473 |
edit := EditField origin:5@5 in:view. |
|
474 |
edit width:175. |
|
475 |
||
476 |
edit := EditField origin:5@30 in:view. |
|
477 |
edit width:175. |
|
478 |
||
479 |
b := Button label:'button' in:view. |
|
480 |
b origin:5@50. |
|
481 |
b action:[ Transcript showCR:'.. things to do, when pressed ...' ]. |
|
482 |
||
483 |
menu menuWidget:view. |
|
484 |
menu menuHeight:100. |
|
485 |
top open. |
|
486 |
||
487 |
"Modified: / 25.5.1999 / 15:16:16 / cg" |
|
488 |
! |
|
489 |
||
490 |
test4 |
|
491 |
" |
|
492 |
self test4 |
|
493 |
" |
|
494 |
|top menu view edit b| |
|
495 |
||
496 |
top := StandardSystemView extent:200@35. |
|
497 |
menu := ExtendedComboBox origin:5 @ 5 corner:195 @ 25 in:top. |
|
498 |
view := View extent:180 @ 100. |
|
499 |
edit := HVScrollableView for:EditTextView origin:0@0 corner:1.0@1.0 in:view. |
|
500 |
edit contents:'Makefile' asFilename contents. |
|
501 |
menu menuWidget:view. |
|
502 |
menu menuHeight:100. |
|
503 |
top open. |
|
504 |
||
505 |
"Modified: / 25.5.1999 / 15:16:16 / cg" |
|
506 |
! |
|
507 |
||
508 |
test5 |
|
509 |
" |
|
510 |
self test5 |
|
511 |
" |
|
512 |
|top menu view| |
|
513 |
||
514 |
top := StandardSystemView extent:300@35. |
|
515 |
menu := ExtendedComboBox origin:0.0@0.0 corner:1.0@1.0 in:top. |
|
516 |
||
517 |
view := View new. |
|
518 |
"/ view client:(CodingExamples_GUI::GUIDemoDataSetView new). |
|
519 |
view client:(CodingExamples_GUI::GUIDemoDragAndDrop new). |
|
520 |
||
521 |
menu menuWidget:view. |
|
522 |
menu menuHeight:300. |
|
523 |
top open. |
|
524 |
||
525 |
! |
|
526 |
||
527 |
test6 |
|
528 |
" |
|
529 |
self test6 |
|
530 |
" |
|
531 |
|top menu view| |
|
532 |
||
533 |
top := StandardSystemView extent:300@35. |
|
534 |
menu := ExtendedComboBox origin:0.0@0.0 corner:1.0@1.0 in:top. |
|
535 |
||
536 |
view := View new. |
|
537 |
view client:(CodingExamples_GUI::GUIDemoDataSetView new). |
|
538 |
||
539 |
menu menuWidget:view. |
|
540 |
menu menuHeight:300. |
|
541 |
top open. |
|
542 |
||
543 |
! |
|
544 |
||
545 |
test7 |
|
546 |
" |
|
547 |
self test7 |
|
548 |
" |
|
549 |
|top menu view| |
|
550 |
||
551 |
top := StandardSystemView extent:300@35. |
|
552 |
menu := ExtendedComboBox origin:0.0@0.0 corner:1.0@1.0 in:top. |
|
553 |
||
554 |
view := View new. |
|
555 |
view client:(CodingExamples_GUI::GUIDemoTabs new). |
|
556 |
||
557 |
menu menuWidget:view. |
|
558 |
menu menuHeight:300. |
|
559 |
top open. |
|
560 |
||
561 |
! |
|
562 |
||
563 |
test8 |
|
564 |
" |
|
565 |
self test8 |
|
566 |
" |
|
567 |
|top menu view| |
|
568 |
||
569 |
top := StandardSystemView extent:300@35. |
|
570 |
menu := ExtendedComboBox origin:0.0@0.0 corner:1.0@1.0 in:top. |
|
571 |
||
572 |
view := View new. |
|
573 |
view client:(CodingExamples_GUI::GUIDemoSliders new). |
|
574 |
||
575 |
menu menuWidget:view. |
|
576 |
menu menuHeight:300. |
|
577 |
top open. |
|
578 |
||
579 |
! |
|
580 |
||
581 |
test9 |
|
582 |
" |
|
583 |
self test9 |
|
584 |
" |
|
585 |
|top menu view| |
|
586 |
||
587 |
top := StandardSystemView extent:400@35. |
|
588 |
menu := ExtendedComboBox origin:0.0@0.0 corner:1.0@1.0 in:top. |
|
589 |
||
590 |
view := View new. |
|
591 |
view client:(CodingExamples_GUI::GUIDemo new). |
|
592 |
||
593 |
menu menuWidget:view. |
|
594 |
menu menuHeight:500. |
|
595 |
top open. |
|
596 |
||
1179 | 597 |
! ! |
598 |
||
599 |
!ExtendedComboBox methodsFor:'accessing'! |
|
600 |
||
1224 | 601 |
contents |
602 |
"return the value of the field |
|
603 |
" |
|
604 |
^ model value |
|
605 |
! |
|
1179 | 606 |
|
1224 | 607 |
contents:aValue |
608 |
"set the value of the field |
|
609 |
" |
|
610 |
model value:aValue. |
|
611 |
! |
|
1179 | 612 |
|
1224 | 613 |
menuWidget |
614 |
"get the menu widget or nil |
|
615 |
" |
|
616 |
^ menuWidget |
|
617 |
||
618 |
||
1179 | 619 |
! |
620 |
||
1224 | 621 |
menuWidget:aWidgetOrNil |
622 |
"set the menu widget or nil |
|
623 |
" |
|
624 |
menuWidget ~~ aWidgetOrNil ifTrue:[ |
|
625 |
menuWrapper notNil ifTrue:[ |
|
626 |
self closeMenu. |
|
627 |
menuWrapper destroy. |
|
628 |
menuWrapper := nil. |
|
629 |
]. |
|
630 |
menuWidget := aWidgetOrNil. |
|
631 |
]. |
|
632 |
! ! |
|
633 |
||
1274 | 634 |
!ExtendedComboBox methodsFor:'accessing-actions'! |
1179 | 635 |
|
1274 | 636 |
openAction |
637 |
"returns the action, called before opening the pulldown menu |
|
638 |
" |
|
639 |
^ openAction |
|
1179 | 640 |
! |
641 |
||
1274 | 642 |
openAction:aOneArgBlock |
643 |
"set the action, called before opening the pulldown menu; the |
|
644 |
argument to the action is the menu widget |
|
1224 | 645 |
" |
1274 | 646 |
openAction := aOneArgBlock |
1224 | 647 |
! ! |
648 |
||
649 |
!ExtendedComboBox methodsFor:'accessing-behavior'! |
|
1179 | 650 |
|
1224 | 651 |
disable |
652 |
"disable components |
|
653 |
" |
|
654 |
self closeMenu. |
|
655 |
||
656 |
(menuField respondsTo:#disable) ifTrue:[ |
|
657 |
menuField disable |
|
658 |
]. |
|
659 |
menuButton disable |
|
1179 | 660 |
|
1224 | 661 |
! |
1179 | 662 |
|
1224 | 663 |
enable |
664 |
"enable components |
|
665 |
" |
|
666 |
(menuField respondsTo:#enable) ifTrue:[ |
|
667 |
menuField enable |
|
668 |
]. |
|
669 |
menuButton enable |
|
670 |
||
671 |
||
1179 | 672 |
! |
673 |
||
1224 | 674 |
enabled |
675 |
"returns true, if is enabled |
|
676 |
" |
|
677 |
^ menuButton enabled |
|
678 |
||
1179 | 679 |
|
1224 | 680 |
! ! |
681 |
||
682 |
!ExtendedComboBox methodsFor:'accessing-channels'! |
|
683 |
||
684 |
enableChannel |
|
685 |
"return a valueHolder for enable/disable |
|
686 |
" |
|
687 |
^ menuButton enableChannel |
|
1179 | 688 |
|
689 |
||
1224 | 690 |
! |
691 |
||
692 |
enableChannel:aValueHolder |
|
693 |
"set a valueHolder for enable/disable for the components |
|
694 |
" |
|
695 |
(menuField respondsTo:#enableChannel:) ifTrue:[ |
|
696 |
menuField enableChannel:aValueHolder |
|
697 |
]. |
|
698 |
menuButton enableChannel:aValueHolder. |
|
699 |
||
700 |
||
701 |
! |
|
1179 | 702 |
|
1224 | 703 |
menuWidgetHolder |
704 |
"returns the menu widget or nil |
|
705 |
" |
|
706 |
^ menuWidgetHolder |
|
707 |
! |
|
708 |
||
709 |
menuWidgetHolder:aHolder |
|
710 |
"returns the menu widget or nil |
|
711 |
" |
|
712 |
menuWidgetHolder notNil ifTrue:[ |
|
713 |
menuWidgetHolder removeDependent:self |
|
714 |
]. |
|
1614 | 715 |
|
716 |
(menuWidgetHolder := aHolder) notNil ifTrue:[ |
|
1224 | 717 |
menuWidgetHolder addDependent:self |
718 |
]. |
|
719 |
self menuWidget:(menuWidgetHolder value). |
|
720 |
! |
|
721 |
||
722 |
model:aModel |
|
723 |
"set the model |
|
724 |
" |
|
725 |
super model:(aModel ? ValueHolder new). |
|
726 |
menuField notNil ifTrue:[ menuField model:model ]. |
|
1179 | 727 |
! ! |
728 |
||
1274 | 729 |
!ExtendedComboBox methodsFor:'accessing-default menus'! |
730 |
||
731 |
directory:aDirectory |
|
732 |
"creates a FileSelectionTree - menu, |
|
733 |
setting the root to the directory |
|
734 |
" |
|
735 |
menuWidget isNil ifTrue:[ |
|
736 |
self autoHideScrollBars:false. |
|
737 |
menuWidget := FileSelectionTree new. |
|
738 |
||
739 |
menuWidget doubleClickAction:[:aDummy||node| |
|
740 |
node := menuWidget selectedNode. |
|
741 |
||
742 |
node isDirectory ifFalse:[ |
|
743 |
self contents:(node pathName) |
|
744 |
] |
|
745 |
] |
|
746 |
]. |
|
747 |
self menuHeight:400. |
|
748 |
menuWidget directory:aDirectory. |
|
749 |
! |
|
750 |
||
751 |
list:aList |
|
752 |
"creates a SelectionInListView - menu |
|
753 |
setting the list |
|
754 |
" |
|
755 |
menuWidget isNil ifTrue:[ |
|
1648
aed7d8a7097c
create popup & subviews on my device (not on screen current)
Claus Gittinger <cg@exept.de>
parents:
1630
diff
changeset
|
756 |
menuWidget := SelectionInListView onDevice:(device ? Screen current). |
1274 | 757 |
|
758 |
menuWidget doubleClickAction:[:anIndex| |
|
759 |
self contents:(menuWidget at:anIndex) |
|
760 |
] |
|
761 |
]. |
|
762 |
menuWidget list:aList |
|
763 |
! ! |
|
764 |
||
1179 | 765 |
!ExtendedComboBox methodsFor:'accessing-dimension'! |
766 |
||
1224 | 767 |
menuHeight |
768 |
"get the maximum height of the menu widget or nil |
|
769 |
" |
|
770 |
^ menuHeight |
|
1179 | 771 |
! |
772 |
||
1224 | 773 |
menuHeight:aHeight |
774 |
"set the maximum height of the menu widget or nil |
|
775 |
" |
|
776 |
menuHeight := aHeight. |
|
1179 | 777 |
! |
778 |
||
1224 | 779 |
preferredExtent |
780 |
"compute & return the preferredExtent from the components' preferrences |
|
781 |
" |
|
782 |
|fieldPref buttonPref m w h f| |
|
1179 | 783 |
|
1224 | 784 |
"/ If I have an explicit preferredExtent .. |
1179 | 785 |
|
1224 | 786 |
preferredExtent notNil ifTrue:[ |
787 |
^ preferredExtent |
|
788 |
]. |
|
789 |
fieldPref := menuField preferredExtent. |
|
790 |
buttonPref := menuButton preferredExtent. |
|
791 |
f := 2 + font maxHeight + (font maxDescent * 2) + (menuField margin * 2). |
|
792 |
h := (fieldPref y max:f) max:buttonPref y. |
|
793 |
m := margin max:1. |
|
794 |
h := h + m + m. |
|
1179 | 795 |
|
1224 | 796 |
w := (fieldPref x max:100) + buttonPref x. |
1179 | 797 |
|
1224 | 798 |
menuWidget notNil ifTrue:[ |
1282
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
799 |
f := menuWidget preferredExtent x "widthOfContents" + buttonPref x + 20. |
1224 | 800 |
w := f max:w |
1179 | 801 |
]. |
1224 | 802 |
w := w + margin + margin. |
1179 | 803 |
|
1224 | 804 |
^ w @ h |
805 |
||
1179 | 806 |
! |
807 |
||
1224 | 808 |
usePreferredWidthForMenu |
1282
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
809 |
"returns true if the menu is to be opened with its menu preferred width |
1224 | 810 |
" |
811 |
^ usePreferredWidthForMenu |
|
1179 | 812 |
|
813 |
! |
|
814 |
||
1224 | 815 |
usePreferredWidthForMenu:aBoolean |
1282
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
816 |
"open the menu with its preferred width |
1224 | 817 |
" |
818 |
usePreferredWidthForMenu := aBoolean |
|
1179 | 819 |
! ! |
820 |
||
1224 | 821 |
!ExtendedComboBox methodsFor:'accessing-look'! |
1179 | 822 |
|
1224 | 823 |
adjust |
824 |
"returns the button adjust symbol, which is one of |
|
825 |
#left -> left adjust button |
|
826 |
#right -> right adjust button |
|
827 |
" |
|
1272 | 828 |
^ adjust ? #right |
1179 | 829 |
|
830 |
! |
|
831 |
||
1224 | 832 |
adjust:how |
833 |
"set the button adjust, which must be one of |
|
834 |
#left -> left adjust button |
|
835 |
#right -> right adjust button |
|
836 |
" |
|
837 |
|rightInset| |
|
1179 | 838 |
|
1224 | 839 |
(adjust ~~ how and:[(how == #left or:[how == #right])]) ifTrue:[ |
840 |
(adjust := how) == #left ifTrue:[ |
|
841 |
menuButton origin:0.0@0.0 corner:0.0@1.0 |
|
842 |
] ifFalse:[ |
|
843 |
menuButton origin:1.0@0.0 corner:1.0@1.0 |
|
844 |
]. |
|
1179 | 845 |
|
1224 | 846 |
rightInset := menuButton leftInset. |
847 |
menuButton leftInset:(menuButton rightInset). |
|
848 |
menuButton rightInset:rightInset. |
|
1179 | 849 |
|
1224 | 850 |
rightInset := menuField leftInset. |
851 |
menuField leftInset:(menuField rightInset). |
|
852 |
menuField rightInset:rightInset. |
|
853 |
]. |
|
1179 | 854 |
! |
855 |
||
1224 | 856 |
backgroundColor |
857 |
"get the background color of the menu field |
|
858 |
" |
|
859 |
^ menuField backgroundColor |
|
1179 | 860 |
|
861 |
||
1224 | 862 |
! |
1179 | 863 |
|
1224 | 864 |
backgroundColor:aColor |
865 |
"set the background color of the menu field |
|
866 |
" |
|
867 |
menuField backgroundColor:aColor |
|
1179 | 868 |
|
869 |
! |
|
870 |
||
1224 | 871 |
font:aFont |
872 |
"set the font of the menu field |
|
873 |
" |
|
874 |
super font:aFont. |
|
875 |
menuField font:aFont. |
|
876 |
||
877 |
||
878 |
||
879 |
! |
|
880 |
||
881 |
foregroundColor |
|
882 |
"set the foreground color of the menu field |
|
883 |
" |
|
884 |
^ menuField foregroundColor |
|
885 |
||
886 |
! |
|
887 |
||
888 |
foregroundColor:aColor |
|
889 |
"set the foreground color of the menu field |
|
890 |
" |
|
891 |
menuField foregroundColor:aColor |
|
892 |
||
893 |
! |
|
1179 | 894 |
|
1224 | 895 |
readOnly |
896 |
"returns true if the menuField is readonly, a label |
|
897 |
" |
|
898 |
^ isReadOnly |
|
899 |
! |
|
900 |
||
901 |
readOnly:aState |
|
902 |
"set the menuField to readonly or writable |
|
903 |
" |
|
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1648
diff
changeset
|
904 |
|newField nm| |
1224 | 905 |
|
906 |
isReadOnly == aState ifTrue:[ ^ self ]. |
|
907 |
isReadOnly := aState. |
|
1179 | 908 |
|
1224 | 909 |
aState ifTrue:[ |
910 |
newField := Label in:self. |
|
911 |
newField level:-1. |
|
912 |
newField adjust:#left. |
|
913 |
newField labelMessage:#value. |
|
914 |
] ifFalse:[ |
|
915 |
newField := EditField in:self |
|
916 |
]. |
|
917 |
||
918 |
newField origin:0.0 @ 0.0 corner:1.0 @ 1.0. |
|
919 |
||
920 |
menuField notNil ifTrue:[ |
|
921 |
newField level:(menuField level). |
|
922 |
newField leftInset:(menuField leftInset). |
|
923 |
newField rightInset:(menuField rightInset). |
|
1179 | 924 |
|
1224 | 925 |
menuField destroy. |
926 |
] ifFalse:[ |
|
927 |
styleSheet is3D ifTrue:[ |
|
928 |
(styleSheet at:'comboViewLevel' default:nil) notNil ifTrue:[ |
|
929 |
newField level:0. |
|
930 |
] ifFalse:[ |
|
931 |
newField leftInset:(ViewSpacing // 2). |
|
932 |
] |
|
933 |
]. |
|
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1648
diff
changeset
|
934 |
nm := styleSheet name. |
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1648
diff
changeset
|
935 |
(nm = #win95 or:[nm = #win98 or:[nm = #st80]]) ifTrue:[ |
1224 | 936 |
newField level:0. |
937 |
newField leftInset:0. |
|
938 |
]. |
|
939 |
newField rightInset:(menuButton leftInset negated). |
|
940 |
]. |
|
941 |
||
942 |
menuField := newField. |
|
943 |
menuField model:model. |
|
944 |
menuField font:font. |
|
945 |
self shown ifTrue:[ menuField realize ]. |
|
946 |
||
947 |
||
948 |
! ! |
|
949 |
||
1272 | 950 |
!ExtendedComboBox methodsFor:'accessing-scroller'! |
951 |
||
952 |
autoHideScrollBars |
|
953 |
"set/clear the flag which controls if scrollBars should |
|
954 |
be made invisible dynamically, if there is nothing to scroll |
|
955 |
(and shown if there is) |
|
956 |
" |
|
957 |
^ autoHideScrollBars |
|
958 |
||
959 |
||
960 |
! |
|
961 |
||
962 |
autoHideScrollBars:aBoolean |
|
963 |
"set/clear the flag which controls if scrollBars should |
|
964 |
be made invisible dynamically, if there is nothing to scroll |
|
965 |
(and shown if there is) |
|
966 |
" |
|
967 |
autoHideScrollBars := aBoolean |
|
968 |
||
969 |
! |
|
970 |
||
971 |
hasHorizontalScrollBar |
|
972 |
"enable/disable horizontal scrollability. |
|
973 |
If disabled, the horizontal scrollBar is made invisible. |
|
974 |
" |
|
975 |
^ hasHorizontalScrollBar |
|
976 |
||
977 |
||
978 |
! |
|
979 |
||
980 |
hasHorizontalScrollBar:aBool |
|
981 |
"enable/disable horizontal scrollability. |
|
982 |
If disabled, the horizontal scrollBar is made invisible. |
|
983 |
" |
|
984 |
hasHorizontalScrollBar := aBool |
|
985 |
||
986 |
! |
|
987 |
||
988 |
hasVerticalScrollBar |
|
989 |
"enable/disable vertical scrollability. |
|
990 |
If disabled, the vertical scrollBar is made invisible. |
|
991 |
" |
|
992 |
^ hasVerticalScrollBar |
|
993 |
! |
|
994 |
||
995 |
hasVerticalScrollBar:aBool |
|
996 |
"enable/disable vertical scrollability. |
|
997 |
If disabled, the vertical scrollBar is made invisible. |
|
998 |
" |
|
999 |
hasVerticalScrollBar := aBool |
|
1000 |
||
1001 |
! |
|
1002 |
||
1003 |
miniScrollerHorizontal |
|
1004 |
"control the horizontal scrollBar to be either a miniScroller, |
|
1005 |
or a full scrollBar. |
|
1006 |
" |
|
1007 |
^ miniScrollerHorizontal |
|
1008 |
! |
|
1009 |
||
1010 |
miniScrollerHorizontal:aBool |
|
1011 |
"control the horizontal scrollBar to be either a miniScroller, |
|
1012 |
or a full scrollBar. |
|
1013 |
" |
|
1014 |
miniScrollerHorizontal := aBool |
|
1015 |
||
1016 |
! |
|
1017 |
||
1018 |
miniScrollerVertical |
|
1019 |
"control the vertical scrollBar to be either a miniScroller, |
|
1020 |
or a full scrollBar. |
|
1021 |
" |
|
1022 |
^ miniScrollerVertical |
|
1023 |
||
1024 |
||
1025 |
! |
|
1026 |
||
1027 |
miniScrollerVertical:aBool |
|
1028 |
"control the vertical scrollBar to be either a miniScroller, |
|
1029 |
or a full scrollBar. |
|
1030 |
" |
|
1031 |
miniScrollerVertical := aBool |
|
1032 |
||
1033 |
! ! |
|
1034 |
||
1224 | 1035 |
!ExtendedComboBox methodsFor:'event handling'! |
1036 |
||
1037 |
doesNotUnderstand:aMessage |
|
1038 |
"does not understand message; delegate to widget |
|
1039 |
" |
|
1272 | 1040 |
menuWidget notNil ifTrue:[ |
1041 |
^ aMessage sendTo:menuWidget |
|
1042 |
]. |
|
1043 |
^ super doesNotUnderstand:aMessage |
|
1224 | 1044 |
|
1045 |
! |
|
1046 |
||
1047 |
keyPress:key x:x y:y |
|
1048 |
"handle a key press event |
|
1049 |
" |
|
1050 |
(key == Character space or:[key == #Return]) ifTrue:[ |
|
1051 |
self enabled ifTrue:[ |
|
1052 |
self openMenu |
|
1053 |
] |
|
1054 |
] ifFalse:[ |
|
1055 |
super keyPress:key x:x y:y |
|
1056 |
] |
|
1057 |
||
1058 |
! |
|
1059 |
||
1060 |
update:what with:aPara from:aModel |
|
1061 |
"one of my models changed |
|
1062 |
" |
|
1063 |
aModel == self model ifTrue:[ |
|
1064 |
^ self closeMenu |
|
1065 |
]. |
|
1066 |
aModel == self menuWidgetHolder ifTrue:[ |
|
1067 |
^ self menuWidget:(menuWidgetHolder value) |
|
1068 |
]. |
|
1069 |
super update:what with:aPara from:aModel |
|
1070 |
||
1071 |
||
1179 | 1072 |
! ! |
1073 |
||
1074 |
!ExtendedComboBox methodsFor:'initialization'! |
|
1075 |
||
1224 | 1076 |
destroy |
1077 |
"destroy the menuWrapper and release dependencies |
|
1078 |
" |
|
1079 |
menuWidgetHolder notNil ifTrue:[ |
|
1080 |
menuWidgetHolder removeDependent:self |
|
1179 | 1081 |
]. |
1224 | 1082 |
self menuWidget:nil. |
1179 | 1083 |
super destroy. |
1084 |
! |
|
1085 |
||
1086 |
initialize |
|
1224 | 1087 |
"setup defaults |
1088 |
" |
|
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1648
diff
changeset
|
1089 |
|prefExt leftInset halfSpacing l nm| |
1179 | 1090 |
|
1091 |
super initialize. |
|
1224 | 1092 |
|
1093 |
menuButton := ComboBoxButton origin:1.0@0.0 corner:1.0@1.0 in:self. |
|
1094 |
menuButton controller beTriggerOnDown. |
|
1095 |
menuButton label:(ComboView buttonForm). |
|
1096 |
menuButton showLamp:false. |
|
1097 |
||
1098 |
menuButton activeLevel == menuButton passiveLevel ifTrue:[ |
|
1099 |
menuButton activeLevel:0. |
|
1100 |
]. |
|
1101 |
menuButton pressAction:[self openMenu]. |
|
1102 |
||
1103 |
prefExt := menuButton preferredExtent. |
|
1104 |
||
1105 |
styleSheet is3D ifTrue:[ |
|
1106 |
halfSpacing := ViewSpacing // 2. |
|
1107 |
leftInset := prefExt x + halfSpacing. |
|
1108 |
||
1109 |
(l := styleSheet at:'comboViewLevel' default:nil) notNil ifTrue:[ |
|
1110 |
self level:l. |
|
1111 |
] ifFalse:[ |
|
1112 |
menuButton rightInset:halfSpacing. |
|
1113 |
] |
|
1114 |
] ifFalse:[ |
|
1115 |
leftInset := prefExt x + menuButton borderWidth. |
|
1116 |
]. |
|
1117 |
||
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1648
diff
changeset
|
1118 |
nm := styleSheet name. |
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1648
diff
changeset
|
1119 |
(nm = #win95 |
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1648
diff
changeset
|
1120 |
or:[nm = #win98 |
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1648
diff
changeset
|
1121 |
or:[nm = #st80]]) ifTrue:[ |
1224 | 1122 |
self level:-1. |
1123 |
menuButton rightInset:0. |
|
1179 | 1124 |
|
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1648
diff
changeset
|
1125 |
nm ~= #st80 ifTrue:[ |
1224 | 1126 |
leftInset := (ArrowButton new preferredExtent x). |
1127 |
]. |
|
1128 |
]. |
|
1129 |
menuButton leftInset:leftInset negated. |
|
1130 |
self model:nil. |
|
1131 |
||
1132 |
adjust := #right. |
|
1133 |
usePreferredWidthForMenu := false. |
|
1134 |
isReadOnly := false. |
|
1272 | 1135 |
|
1136 |
autoHideScrollBars := true. |
|
1137 |
hasHorizontalScrollBar := true. |
|
1138 |
hasVerticalScrollBar := true. |
|
1139 |
miniScrollerHorizontal := true. |
|
1140 |
miniScrollerVertical := false. |
|
1141 |
||
1224 | 1142 |
self readOnly:true. |
1143 |
||
1144 |
! ! |
|
1145 |
||
1272 | 1146 |
!ExtendedComboBox methodsFor:'queries'! |
1147 |
||
1148 |
menuIsScrollable |
|
1149 |
"returns true if the menu is scrollable |
|
1150 |
" |
|
1151 |
^ (self hasVerticalScrollBar or:[self hasHorizontalScrollBar]) |
|
1152 |
! ! |
|
1153 |
||
1224 | 1154 |
!ExtendedComboBox methodsFor:'user interactions'! |
1179 | 1155 |
|
1224 | 1156 |
closeMenu |
1157 |
"close the menu |
|
1158 |
" |
|
1159 |
|id| |
|
1160 |
||
1161 |
menuWrapper notNil ifTrue:[ |
|
1162 |
menuWrapper realized ifFalse:[ |
|
1163 |
(id := menuWrapper id) notNil ifTrue:[ |
|
1164 |
device unmapWindow:id |
|
1165 |
] |
|
1166 |
] ifTrue:[ |
|
1167 |
menuWrapper unmap |
|
1168 |
]. |
|
1273 | 1169 |
"/ menuWrapper windowGroup:nil. |
1170 |
"/ self windowGroup removeView:menuWrapper. |
|
1224 | 1171 |
]. |
1172 |
menuButton turnOff. |
|
1173 |
||
1179 | 1174 |
! |
1175 |
||
1224 | 1176 |
openMenu |
1177 |
"pull the menu - triggered from the button |
|
1178 |
" |
|
1392 | 1179 |
|h w menuOrigin widgetPrfExt useableExt| |
1179 | 1180 |
|
1630 | 1181 |
"/[ |
1182 |
"/|v| |
|
1183 |
"/ |
|
1184 |
"/v := self container. |
|
1185 |
"/[v notNil] whileTrue:[ |
|
1186 |
"/ v class == CodingExamples_GUI::GUIDemoExtendedComboBox::ApplicationSubView ifTrue:[ |
|
1187 |
"/ self halt |
|
1188 |
"/ ]. |
|
1189 |
"/ v := v container. |
|
1190 |
"/]. |
|
1191 |
"/] value. |
|
1192 |
||
1274 | 1193 |
openAction notNil ifTrue:[ |
1194 |
openAction numArgs == 0 ifTrue:[ |
|
1195 |
openAction value |
|
1196 |
] ifFalse:[ |
|
1197 |
openAction value:menuWidget |
|
1198 |
] |
|
1199 |
]. |
|
1224 | 1200 |
menuWrapper isNil ifTrue:[ |
1201 |
menuWidget isNil ifTrue:[^ self]. |
|
1648
aed7d8a7097c
create popup & subviews on my device (not on screen current)
Claus Gittinger <cg@exept.de>
parents:
1630
diff
changeset
|
1202 |
menuWrapper := MenuWrapper onDevice:(device ? Screen current). |
1272 | 1203 |
menuWrapper for:menuWidget in:self. |
1224 | 1204 |
]. |
1205 |
menuButton turnOn. |
|
1206 |
||
1392 | 1207 |
menuOrigin := device translatePoint:(0@height) from:(self id) to:(device rootWindowId). |
1208 |
useableExt := device usableExtent. |
|
1209 |
widgetPrfExt := menuWrapper preferredExtent. |
|
1179 | 1210 |
|
1224 | 1211 |
menuHeight isNil ifTrue:[ |
1392 | 1212 |
menuHeight := (5 + widgetPrfExt y) min:(useableExt y // 2). |
1224 | 1213 |
]. |
1179 | 1214 |
|
1224 | 1215 |
usePreferredWidthForMenu ifFalse:[ |
1216 |
w := width |
|
1217 |
] ifTrue:[ |
|
1392 | 1218 |
(w := widgetPrfExt x+(menuWrapper borderWidth*2)) <= width ifTrue:[ |
1224 | 1219 |
w := width |
1220 |
] ifFalse:[ |
|
1221 |
(w + menuOrigin x) > useableExt x ifTrue:[ |
|
1222 |
menuOrigin x:((useableExt x - w) max:0) |
|
1223 |
] |
|
1224 |
] |
|
1225 |
]. |
|
1282
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
1226 |
|
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
1227 |
"/ nice side-effect; set width first, to allow menuHeight |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
1228 |
"/ to be a block computing the height based upon the width. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
1229 |
"/ (allows for geometry adjustments) |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
1230 |
|
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
1231 |
menuWrapper width:w. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
1232 |
h := (useableExt y - menuOrigin y - 4) min:(menuHeight value). |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
1233 |
menuWrapper height:h. |
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
1234 |
|
4269f064951c
allow for menuHeight to be a block;
Claus Gittinger <cg@exept.de>
parents:
1281
diff
changeset
|
1235 |
menuWrapper origin:menuOrigin extent:(w@h). |
1273 | 1236 |
menuWrapper openModal. |
1179 | 1237 |
! ! |
1238 |
||
1630 | 1239 |
!ExtendedComboBox::MenuWrapper class methodsFor:'documentation'! |
1240 |
||
1241 |
documentation |
|
1242 |
" |
|
1243 |
problem: we have a grab - and get all events; |
|
1244 |
to simulate regular behaior inside, we have to synthetically simulate |
|
1245 |
focus control and implicit grab on buttonPress. |
|
1246 |
||
1247 |
[instance variables:] |
|
1248 |
lastPointerView <View> view which contained the |
|
1249 |
mouse pointer. |
|
1250 |
used for enter/leave event generation. |
|
1251 |
||
1252 |
implicitGrabView <View> view in which button was pressed; |
|
1253 |
nilled when released (wherever). |
|
1254 |
If non-nil, all events are forwarded to this |
|
1255 |
one (for example to scroll with mouse outside the scrollbar) |
|
1256 |
||
1257 |
" |
|
1258 |
! ! |
|
1259 |
||
1224 | 1260 |
!ExtendedComboBox::MenuWrapper methodsFor:'accessing'! |
1261 |
||
1262 |
application |
|
1263 |
"return the application, under which this view was opened, |
|
1264 |
or nil, if there is no application |
|
1265 |
" |
|
1266 |
^ comboBox application |
|
1267 |
||
1268 |
! |
|
1269 |
||
1630 | 1270 |
clearImplicitGrab |
1271 |
implicitGrabView := nil |
|
1272 |
! |
|
1273 |
||
1224 | 1274 |
preferredExtent |
1275 |
"compute & return the preferredExtent from the components' preferrences |
|
1276 |
" |
|
1284 | 1277 |
^ (widget preferredExtent max:(widget widthOfContents @ widget heightOfContents)) |
1278 |
+ (margin * 2) + 8. |
|
1224 | 1279 |
! |
1280 |
||
1281 |
widget |
|
1282 |
"returns the widget wrapped by the menuView |
|
1283 |
" |
|
1284 |
^ widget |
|
1285 |
! ! |
|
1286 |
||
1287 |
!ExtendedComboBox::MenuWrapper methodsFor:'event handling'! |
|
1179 | 1288 |
|
1630 | 1289 |
dispatchEvent:event withFocusOn:focusViewOrNil delegate:doDelegate |
1290 |
"dispatch the event" |
|
1291 |
||
1292 |
|originalEvent x y oldGrabber myGrabber p| |
|
1293 |
||
1294 |
event isInputEvent ifFalse:[ |
|
1295 |
super dispatchEvent:event withFocusOn:focusViewOrNil delegate:doDelegate. |
|
1296 |
^ self |
|
1297 |
]. |
|
1298 |
||
1299 |
event isPointerEnterLeaveEvent ifTrue:[ |
|
1300 |
super dispatchEvent:event withFocusOn:focusViewOrNil delegate:doDelegate. |
|
1301 |
^ self |
|
1302 |
]. |
|
1303 |
||
1304 |
event isButtonPressEvent ifTrue:[ |
|
1305 |
x := event x. |
|
1306 |
y := event y. |
|
1179 | 1307 |
|
1630 | 1308 |
((0@0 extent:self extent) containsPoint:(x @ y)) ifFalse:[ |
1309 |
comboBox closeMenu. |
|
1310 |
"/ if I took the grab from someone else, this buttonEvent should |
|
1311 |
"/ also go to that one ...but not, if it falls into my own ext-comboBox (sigh) |
|
1312 |
"/ (example: a sub-ext-box in an ext-box, clicking on the outer boxes menuButton) |
|
1313 |
(oldGrabber := device activePointerGrab) notNil ifTrue:[ |
|
1314 |
p := device translatePoint:(x@y) from:(self id) to:(comboBox id). |
|
1315 |
((0@0 extent:comboBox extent) containsPoint:p) ifFalse:[ |
|
1316 |
p := device translatePoint:(x@y) from:(self id) to:(oldGrabber id). |
|
1317 |
event view:oldGrabber. |
|
1318 |
event x:p x. |
|
1319 |
event y:p y. |
|
1224 | 1320 |
|
1630 | 1321 |
"/ this is a hack |
1322 |
oldGrabber class == self class ifTrue:[ |
|
1323 |
oldGrabber clearImplicitGrab. |
|
1324 |
]. |
|
1325 |
oldGrabber dispatchEvent:event withFocusOn:focusViewOrNil delegate:doDelegate. |
|
1326 |
]. |
|
1327 |
]. |
|
1328 |
^ self. |
|
1329 |
] |
|
1330 |
]. |
|
1331 |
self forwardEvent:event withFocusOn:focusViewOrNil. |
|
1332 |
! |
|
1333 |
||
1334 |
forwardEvent:ev withFocusOn:focusView |
|
1335 |
"handle a key press event |
|
1336 |
" |
|
1337 |
|view x y p syntheticEvent| |
|
1338 |
||
1339 |
"/ situation: we get a buttonPress, set implicitGrab (for scrollbars etc.) |
|
1340 |
"/ but never get the buttonRelease, since someone else (a popUp) grabbed the |
|
1341 |
"/ pointer in the meantime, and has eaten the release event ... (double-sigh) |
|
1342 |
implicitGrabView notNil ifTrue:[ |
|
1343 |
self sensor leftButtonPressed ifFalse:[ |
|
1344 |
Transcript showCR:'clear'. |
|
1345 |
implicitGrabView := nil. |
|
1179 | 1346 |
]. |
1347 |
]. |
|
1348 |
||
1630 | 1349 |
((x := ev x) isNil or:[(y := ev y) isNil]) ifTrue:[ |
1350 |
^ self |
|
1351 |
]. |
|
1179 | 1352 |
|
1630 | 1353 |
implicitGrabView notNil ifTrue:[ |
1354 |
ev isButtonEvent ifTrue:[ |
|
1355 |
p := device translatePoint:(x@y) from:(self id) to:(implicitGrabView id). |
|
1356 |
ev view:implicitGrabView. |
|
1357 |
ev arguments at:2 put:p x. |
|
1358 |
ev arguments at:3 put:p y. |
|
1359 |
implicitGrabView dispatchEvent:ev withFocusOn:focusView delegate:false. |
|
1224 | 1360 |
|
1630 | 1361 |
ev isButtonReleaseEvent ifTrue:[ |
1362 |
implicitGrabView := nil. |
|
1363 |
]. |
|
1364 |
^ self |
|
1179 | 1365 |
] |
1366 |
]. |
|
1367 |
||
1630 | 1368 |
view := self detectViewAtX:x y:y. |
1369 |
view isNil ifTrue:[ |
|
1370 |
^ super dispatchEvent:ev withFocusOn:focusView delegate:false |
|
1371 |
]. |
|
1179 | 1372 |
|
1630 | 1373 |
p := device translatePoint:(x@y) from:(self id) to:(view id). |
1224 | 1374 |
|
1630 | 1375 |
ev isButtonPressEvent ifTrue:[ |
1376 |
(view wantsFocusWithButtonPress) ifTrue:[ |
|
1377 |
view requestFocus. |
|
1378 |
]. |
|
1379 |
view ~~ self ifTrue:[ "/ can this ever be self ? |
|
1380 |
implicitGrabView := view. |
|
1179 | 1381 |
] |
1382 |
]. |
|
1224 | 1383 |
|
1630 | 1384 |
ev isButtonMotionEvent ifTrue:[ |
1385 |
lastPointerView ~~ view ifTrue:[ |
|
1386 |
"/ must generate enter/leave ... (sigh) |
|
1387 |
lastPointerView notNil ifTrue:[ |
|
1388 |
syntheticEvent := WindowEvent inputEvent |
|
1389 |
for:lastPointerView |
|
1390 |
type:#pointerLeave: |
|
1391 |
arguments:(Array with:0). "/ XXX: should be fixed |
|
1392 |
lastPointerView dispatchEvent:syntheticEvent withFocusOn:nil delegate:false. |
|
1393 |
]. |
|
1394 |
view notNil ifTrue:[ |
|
1395 |
syntheticEvent := WindowEvent inputEvent |
|
1396 |
for:view |
|
1397 |
type:#pointerEnter:x:y: |
|
1398 |
arguments:(Array with:0 with:x with:y). |
|
1399 |
view dispatchEvent:syntheticEvent withFocusOn:nil delegate:false. |
|
1400 |
]. |
|
1401 |
lastPointerView := view. |
|
1402 |
]. |
|
1179 | 1403 |
]. |
1404 |
||
1630 | 1405 |
ev view:view. |
1406 |
ev x:p x. |
|
1407 |
ev y:p y. |
|
1408 |
view dispatchEvent:ev withFocusOn:focusView delegate:false. |
|
1409 |
! ! |
|
1410 |
||
1411 |
!ExtendedComboBox::MenuWrapper methodsFor:'focus handling'! |
|
1179 | 1412 |
|
1630 | 1413 |
wantsFocusWithButtonPress |
1414 |
"views which do not like to take the keyboard focus |
|
1415 |
with buttonPress can do so by redefining this |
|
1416 |
to return false" |
|
1417 |
||
1418 |
^ false |
|
1419 |
||
1420 |
||
1179 | 1421 |
! ! |
1422 |
||
1224 | 1423 |
!ExtendedComboBox::MenuWrapper methodsFor:'initialization'! |
1424 |
||
1425 |
for:aWidget in:aReceiver |
|
1426 |
"create a wrapper for a widget and the receiver, an extented comboBox |
|
1427 |
" |
|
1272 | 1428 |
|hasScr| |
1429 |
||
1224 | 1430 |
comboBox := aReceiver. |
1272 | 1431 |
widget := aWidget. |
1432 |
hasScr := aWidget isScrollWrapper. |
|
1179 | 1433 |
|
1272 | 1434 |
comboBox menuIsScrollable ifTrue:[ |
1435 |
hasScr ifFalse:[ |
|
1436 |
widget := ScrollableView forView:aWidget. |
|
1437 |
hasScr := true. |
|
1438 |
]. |
|
1439 |
widget horizontalScrollable:(comboBox hasHorizontalScrollBar). |
|
1440 |
widget verticalScrollable:(comboBox hasVerticalScrollBar). |
|
1441 |
widget horizontalMini:(comboBox miniScrollerHorizontal). |
|
1442 |
widget verticalMini:(comboBox miniScrollerVertical). |
|
1443 |
widget autoHideScrollBars:(comboBox autoHideScrollBars). |
|
1224 | 1444 |
]. |
1445 |
widget origin:0.0 @ 0.0 corner:1.0 @ 1.0. |
|
1446 |
self add:widget. |
|
1272 | 1447 |
|
1448 |
hasScr ifTrue:[ |
|
1449 |
widget := widget scrolledView. |
|
1630 | 1450 |
]. |
1451 |
||
1179 | 1452 |
! |
1453 |
||
1273 | 1454 |
hideRequest |
1455 |
"hide request from windowGroup (i.e. via Escape key). |
|
1456 |
Can be redefined in subclasses which dont like this" |
|
1457 |
||
1458 |
comboBox closeMenu |
|
1179 | 1459 |
|
1460 |
! |
|
1461 |
||
1462 |
mapped |
|
1224 | 1463 |
"grab resources (mouse and keyboard) |
1464 |
" |
|
1179 | 1465 |
super mapped. |
1630 | 1466 |
self assignKeyboardFocusToFirstInputField. |
1179 | 1467 |
! ! |
1468 |
||
1224 | 1469 |
!ExtendedComboBox::MenuWrapper methodsFor:'queries'! |
1179 | 1470 |
|
1224 | 1471 |
raiseDeiconified |
1472 |
^ self raise |
|
1473 |
||
1474 |
! |
|
1179 | 1475 |
|
1224 | 1476 |
type |
1477 |
^ nil. |
|
1179 | 1478 |
|
1224 | 1479 |
|
1179 | 1480 |
! ! |
1481 |
||
1224 | 1482 |
!ExtendedComboBox::MenuWrapper methodsFor:'searching'! |
1179 | 1483 |
|
1484 |
detectViewAtX:x y:y |
|
1224 | 1485 |
"detect view at x@y. if no view is detected or |
1486 |
the it is my view nil is returned |
|
1487 |
" |
|
1179 | 1488 |
|v| |
1489 |
||
1224 | 1490 |
(x notNil or:[y notNil]) ifTrue:[ |
1491 |
((x between:0 and:width) and:[y between:0 and:height]) ifTrue:[ |
|
1492 |
v := self detectViewAtX:x y:y in:self. |
|
1493 |
v ~~ self ifTrue:[^ v]. |
|
1494 |
] |
|
1179 | 1495 |
]. |
1496 |
^ nil |
|
1497 |
! |
|
1498 |
||
1499 |
detectViewAtX:x y:y in:aTopView |
|
1224 | 1500 |
"detect view at x@y in a top view; if no view is detected |
1501 |
the topview is returned |
|
1502 |
" |
|
1179 | 1503 |
|subviews| |
1504 |
||
1224 | 1505 |
(subviews := aTopView subViews) notNil ifTrue:[ |
1506 |
subviews do:[:v||p| |
|
1507 |
( (x between:(v left) and:(v right)) |
|
1508 |
and:[y between:(v top) and:(v bottom)] |
|
1509 |
) ifTrue:[ |
|
1510 |
p := device translatePoint:(x@y) from:(aTopView id) to:(v id). |
|
1511 |
^ self detectViewAtX:p x y:p y in:v. |
|
1512 |
] |
|
1179 | 1513 |
] |
1514 |
]. |
|
1515 |
^ aTopView |
|
1516 |
! ! |
|
1517 |
||
1518 |
!ExtendedComboBox class methodsFor:'documentation'! |
|
1519 |
||
1520 |
version |
|
1696
f1bae6d68ffe
eliminated styleSheet name = win95 queries
Claus Gittinger <cg@exept.de>
parents:
1648
diff
changeset
|
1521 |
^ '$Header: /cvs/stx/stx/libwidg2/ExtendedComboBox.st,v 1.18 2000-02-11 14:55:52 cg Exp $' |
1179 | 1522 |
! ! |