0
|
1 |
"
|
5
|
2 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
59
|
3 |
All Rights Reserved
|
0
|
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 |
|
110
|
13 |
'From Smalltalk/X, Version:2.10.5 on 25-mar-1995 at 1:10:33 am'!
|
|
14 |
|
119
|
15 |
SimpleView subclass:#ScrollBar
|
130
|
16 |
instanceVariableNames:'thumb button1 button2 buttonLayout elementSpacing'
|
110
|
17 |
classVariableNames:'DefaultButtonPositions DefaultLevel DefaultElementSpacing
|
128
|
18 |
DefaultScrollerBordered'
|
110
|
19 |
poolDictionaries:''
|
|
20 |
category:'Views-Interactors'
|
0
|
21 |
!
|
|
22 |
|
|
23 |
ScrollBar comment:'
|
5
|
24 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
59
|
25 |
All Rights Reserved
|
0
|
26 |
|
130
|
27 |
$Header: /cvs/stx/stx/libwidg/ScrollBar.st,v 1.14 1995-06-06 04:14:58 claus Exp $
|
0
|
28 |
'!
|
|
29 |
|
38
|
30 |
!ScrollBar class methodsFor:'documentation'!
|
0
|
31 |
|
38
|
32 |
copyright
|
|
33 |
"
|
|
34 |
COPYRIGHT (c) 1989 by Claus Gittinger
|
59
|
35 |
All Rights Reserved
|
0
|
36 |
|
38
|
37 |
This software is furnished under a license and may be used
|
|
38 |
only in accordance with the terms of that license and with the
|
|
39 |
inclusion of the above copyright notice. This software may not
|
|
40 |
be provided or otherwise made available to, or used by, any
|
|
41 |
other person. No title to or ownership of the software is
|
|
42 |
hereby transferred.
|
|
43 |
"
|
|
44 |
!
|
|
45 |
|
|
46 |
version
|
|
47 |
"
|
130
|
48 |
$Header: /cvs/stx/stx/libwidg/ScrollBar.st,v 1.14 1995-06-06 04:14:58 claus Exp $
|
38
|
49 |
"
|
0
|
50 |
!
|
|
51 |
|
38
|
52 |
documentation
|
|
53 |
"
|
|
54 |
this class implements vertical scrollbars with scroller and
|
|
55 |
2 step-scroll buttons. when moved or stepped, it performs a
|
|
56 |
predefined action.
|
|
57 |
|
|
58 |
The action is specified by: the block to be evaluated for step-up
|
59
|
59 |
aScrollBar scrollUpAction:aBlock
|
|
60 |
(scrollLeftAction for hor-Scrollbars)
|
0
|
61 |
|
59
|
62 |
aScrollBar scrollDownAction:aBlock the block to be evaluated for step-down
|
|
63 |
(scrollRightAction for hor-Scrollbars)
|
38
|
64 |
|
59
|
65 |
aScrollbar scrollAction:aBlock the block to be evaluated for scroll
|
|
66 |
passing percentage as argument.
|
38
|
67 |
|
|
68 |
Scrollbars can scroll syncronous (i.e. every movement is notified immediately via the
|
|
69 |
scrollAction) or asynchronous (i.e. only one notification takes place at the end of the movement).
|
|
70 |
The choice is up to the user of the scrollbar (typically, views which are complicated to redraw,
|
|
71 |
will set it to asynchronous.)
|
|
72 |
|
|
73 |
Most often scrollbars are used hidden with ScrollableView or HVScrollableView (i.e. you
|
|
74 |
dont have to care for all the details).
|
128
|
75 |
|
|
76 |
The scrollBars and scrollers protocols have been made similar enough to
|
|
77 |
allow transparent use of either a scroller or a scrollBar in applications.
|
38
|
78 |
"
|
0
|
79 |
! !
|
|
80 |
|
|
81 |
!ScrollBar class methodsFor:'style changes'!
|
|
82 |
|
59
|
83 |
updateStyleCache
|
|
84 |
DefaultButtonPositions := StyleSheet at:'scrollBarButtonPositions' default:#bottom.
|
|
85 |
DefaultLevel := StyleSheet at:'scrollBarLevel'.
|
|
86 |
DefaultScrollerBordered := StyleSheet at:'scrollBarScrollerBordered' default:false.
|
|
87 |
DefaultElementSpacing := StyleSheet at:'scrollBarElementSpacing'
|
|
88 |
default:(StyleSheet is3D ifTrue:[1] ifFalse:[0]).
|
0
|
89 |
! !
|
|
90 |
|
|
91 |
!ScrollBar methodsFor:'initialization'!
|
|
92 |
|
38
|
93 |
setElementPositions
|
|
94 |
"position sub-components"
|
|
95 |
|
59
|
96 |
|bwn|
|
38
|
97 |
|
|
98 |
bwn := borderWidth negated + margin.
|
|
99 |
|
130
|
100 |
(buttonLayout == #top) ifTrue:[
|
59
|
101 |
button1 origin:(bwn @ bwn).
|
|
102 |
button1 viewGravity:#North.
|
|
103 |
button2 origin:(bwn @ (button1 height)).
|
|
104 |
button2 viewGravity:#North.
|
|
105 |
thumb origin:(bwn @ (button1 height
|
|
106 |
+ borderWidth
|
|
107 |
+ button2 height
|
|
108 |
+ elementSpacing
|
|
109 |
+ elementSpacing)).
|
|
110 |
thumb viewGravity:#North.
|
|
111 |
^ self
|
38
|
112 |
].
|
130
|
113 |
(buttonLayout == #bottom) ifTrue:[
|
63
|
114 |
device supportsViewGravity ifTrue:[
|
|
115 |
button1 viewGravity:#South.
|
|
116 |
button2 viewGravity:#South.
|
|
117 |
thumb viewGravity:#North.
|
|
118 |
].
|
59
|
119 |
thumb origin:(bwn @ bwn).
|
|
120 |
^ self
|
38
|
121 |
].
|
|
122 |
|
130
|
123 |
"buttonLayout == #around"
|
38
|
124 |
button1 origin:(bwn @ bwn).
|
|
125 |
button1 viewGravity:#North.
|
63
|
126 |
"/ button2 viewGravity:#North.
|
59
|
127 |
thumb origin:(bwn @ (button1 height + elementSpacing)).
|
38
|
128 |
thumb viewGravity:#North
|
|
129 |
!
|
|
130 |
|
110
|
131 |
createElements
|
|
132 |
button1 := ArrowButton upIn:self.
|
|
133 |
button2 := ArrowButton downIn:self.
|
|
134 |
thumb := Scroller in:self.
|
|
135 |
!
|
|
136 |
|
|
137 |
initStyle
|
|
138 |
super initStyle.
|
|
139 |
|
130
|
140 |
buttonLayout := DefaultButtonPositions.
|
110
|
141 |
DefaultLevel notNil ifTrue:[
|
|
142 |
self level:DefaultLevel
|
|
143 |
].
|
|
144 |
elementSpacing := DefaultElementSpacing
|
|
145 |
!
|
|
146 |
|
38
|
147 |
computeInitialExtent
|
|
148 |
"compute my extent from sub-components"
|
|
149 |
|
130
|
150 |
self extent:(self preferredExtent).
|
110
|
151 |
!
|
|
152 |
|
|
153 |
initialize
|
|
154 |
"setup; create the 2 buttons and a scroller"
|
|
155 |
|
|
156 |
|clr style|
|
|
157 |
|
|
158 |
super initialize.
|
|
159 |
|
|
160 |
self createElements.
|
|
161 |
|
130
|
162 |
(styleSheet at:'scrollBarDisableButtons' default:false) ifTrue:[
|
128
|
163 |
thumb addDependent:self
|
|
164 |
].
|
|
165 |
|
110
|
166 |
button1 autoRepeat.
|
|
167 |
button2 autoRepeat.
|
|
168 |
|
|
169 |
self computeInitialExtent.
|
|
170 |
|
|
171 |
button1 borderWidth:borderWidth.
|
|
172 |
DefaultScrollerBordered ifFalse:[
|
128
|
173 |
thumb borderWidth:borderWidth.
|
110
|
174 |
].
|
|
175 |
button2 borderWidth:borderWidth.
|
|
176 |
|
130
|
177 |
style := styleSheet name.
|
110
|
178 |
((style = #iris) and:[Display hasGreyscales]) ifTrue:[
|
128
|
179 |
"have to change some of Buttons defaults"
|
|
180 |
clr := (Color grey:25) on:device.
|
|
181 |
button1 offLevel:2.
|
|
182 |
button2 offLevel:2.
|
|
183 |
button1 foregroundColor:clr.
|
|
184 |
button1 activeForegroundColor:clr.
|
|
185 |
button1 enteredForegroundColor:clr.
|
|
186 |
button2 foregroundColor:clr.
|
|
187 |
button2 activeForegroundColor:clr.
|
|
188 |
button2 enteredForegroundColor:clr.
|
110
|
189 |
].
|
|
190 |
|
|
191 |
self setElementPositions.
|
|
192 |
|
|
193 |
style = #motif ifTrue:[
|
128
|
194 |
clr := thumb thumbColor.
|
|
195 |
button1 foregroundColor:clr.
|
|
196 |
button2 foregroundColor:clr.
|
110
|
197 |
|
128
|
198 |
clr := thumb viewBackground.
|
|
199 |
button1 viewBackground:clr.
|
|
200 |
button2 viewBackground:clr.
|
|
201 |
button1 backgroundColor:clr.
|
|
202 |
button2 backgroundColor:clr.
|
|
203 |
button1 activeBackgroundColor:clr.
|
|
204 |
button2 activeBackgroundColor:clr.
|
|
205 |
device hasGreyscales ifFalse:[
|
|
206 |
button1 activeForegroundColor:Black.
|
|
207 |
button2 activeForegroundColor:Black.
|
|
208 |
]
|
110
|
209 |
]
|
|
210 |
!
|
|
211 |
|
|
212 |
reinitialize
|
|
213 |
super reinitialize.
|
|
214 |
self setElementPositions.
|
0
|
215 |
! !
|
|
216 |
|
128
|
217 |
!ScrollBar methodsFor:'change & update'!
|
0
|
218 |
|
128
|
219 |
update:something with:aParameter from:changedObject
|
|
220 |
changedObject == thumb ifTrue:[
|
|
221 |
self enableDisableButtons
|
|
222 |
]
|
|
223 |
! !
|
110
|
224 |
|
130
|
225 |
!ScrollBar methodsFor:'queries'!
|
|
226 |
|
|
227 |
preferredExtent
|
|
228 |
"compute my extent from sub-components"
|
|
229 |
|
|
230 |
|w h upForm downForm
|
|
231 |
upHeight "{ Class: SmallInteger }"
|
|
232 |
downHeight "{ Class: SmallInteger }"
|
|
233 |
upWidth downWidth style|
|
|
234 |
|
|
235 |
"
|
|
236 |
need fix - this is a kludge;
|
|
237 |
the if should not be needed ...
|
|
238 |
"
|
|
239 |
style := styleSheet name.
|
|
240 |
style == #mswindows ifTrue:[
|
|
241 |
w := button1 width max:button2 width.
|
|
242 |
h := button1 height + button2 height + (Scroller defaultExtent y).
|
|
243 |
] ifFalse:[
|
|
244 |
upForm := ArrowButton upArrowButtonForm:style on:device.
|
|
245 |
downForm := ArrowButton downArrowButtonForm:style on:device.
|
|
246 |
upForm isNil ifTrue:[
|
|
247 |
upHeight := upWidth := 16.
|
|
248 |
] ifFalse:[
|
|
249 |
upHeight := upForm height.
|
|
250 |
upWidth := upForm width
|
|
251 |
].
|
|
252 |
downForm isNil ifTrue:[
|
|
253 |
downHeight := downWidth := 16
|
|
254 |
] ifFalse:[
|
|
255 |
downHeight := downForm height.
|
|
256 |
downWidth := downForm width
|
|
257 |
].
|
|
258 |
h := upHeight + downHeight + (1 * 2) + (Scroller defaultExtent y).
|
|
259 |
w := upWidth max:downWidth.
|
|
260 |
style ~~ #normal ifTrue:[
|
|
261 |
h := h + 4.
|
|
262 |
w := w + 4
|
|
263 |
].
|
|
264 |
].
|
|
265 |
|
|
266 |
^ w @ h.
|
|
267 |
! !
|
|
268 |
|
128
|
269 |
!ScrollBar methodsFor:'private'!
|
|
270 |
|
|
271 |
enableDisableButtons
|
|
272 |
|e1 e2|
|
|
273 |
|
130
|
274 |
(styleSheet at:'scrollBarDisableButtons' default:false) ifFalse:[^ self].
|
110
|
275 |
|
128
|
276 |
e1 := e2 := true.
|
|
277 |
thumb thumbHeight >= 99.99999 ifTrue:[
|
|
278 |
e1 := false.
|
|
279 |
e2 := false
|
|
280 |
] ifFalse:[
|
|
281 |
thumb thumbOrigin <= 0.00001 ifTrue:[
|
|
282 |
e1 := false
|
|
283 |
] ifFalse:[
|
|
284 |
(thumb thumbOrigin + thumb thumbHeight) >= 99.99999 ifTrue:[
|
|
285 |
e2 := false
|
|
286 |
]
|
|
287 |
]
|
|
288 |
].
|
|
289 |
e1 ifTrue:[button1 enable] ifFalse:[button1 disable].
|
|
290 |
e2 ifTrue:[button2 enable] ifFalse:[button2 disable].
|
|
291 |
! !
|
110
|
292 |
|
128
|
293 |
!ScrollBar methodsFor:'accessing-behavior'!
|
110
|
294 |
|
0
|
295 |
scrollAction:aBlock
|
128
|
296 |
"set the action, aBlock to be performed when the scroller is moved.
|
|
297 |
This is forwarded to the scroller here."
|
|
298 |
|
0
|
299 |
thumb scrollAction:aBlock
|
|
300 |
!
|
|
301 |
|
|
302 |
scrollUpAction:aBlock
|
128
|
303 |
"set the action, aBlock to be performed when the up-button is pressed."
|
|
304 |
|
0
|
305 |
button1 action:aBlock
|
|
306 |
!
|
|
307 |
|
|
308 |
scrollDownAction:aBlock
|
128
|
309 |
"set the action, aBlock to be performed when the down-button is pressed."
|
|
310 |
|
0
|
311 |
button2 action:aBlock
|
|
312 |
!
|
|
313 |
|
128
|
314 |
asynchronousOperation
|
|
315 |
"set asynchronous-mode - scroll action is performed after movement
|
|
316 |
of scroller (i.e. when mouse-button is finally released).
|
|
317 |
This is forwarded to the scroller here."
|
|
318 |
|
|
319 |
thumb asynchronousOperation
|
|
320 |
!
|
|
321 |
|
|
322 |
synchronousOperation
|
|
323 |
"set synchronous-mode - scroll action is performed for every movement
|
|
324 |
of scroller.
|
|
325 |
This is forwarded to the scroller here."
|
|
326 |
|
|
327 |
thumb synchronousOperation
|
|
328 |
! !
|
|
329 |
|
|
330 |
!ScrollBar methodsFor:'accessing'!
|
|
331 |
|
|
332 |
setThumbFor:aView
|
|
333 |
"adjust thumb for aView
|
|
334 |
(i.e. adjust thumbs origin & size for views size & views contents).
|
|
335 |
This is forwarded to the scroller here."
|
|
336 |
|
|
337 |
thumb setThumbFor:aView.
|
|
338 |
self enableDisableButtons
|
|
339 |
!
|
|
340 |
|
|
341 |
setThumbOriginFor:aView
|
|
342 |
"adjust thumbs origin for aViews size & contents.
|
|
343 |
This is forwarded to the scroller here."
|
|
344 |
|
|
345 |
thumb setThumbOriginFor:aView.
|
|
346 |
self enableDisableButtons
|
|
347 |
!
|
|
348 |
|
|
349 |
setThumbHeightFor:aView
|
|
350 |
"adjust thumbs height for aViews size & contents.
|
|
351 |
This is forwarded to the scroller here."
|
|
352 |
|
|
353 |
thumb setThumbHeightFor:aView.
|
|
354 |
self enableDisableButtons
|
|
355 |
!
|
|
356 |
|
|
357 |
thumbOrigin:newOrigin thumbHeight:newHeight
|
|
358 |
"set origin and height of thumb (both in percent)"
|
|
359 |
|
|
360 |
thumb thumbOrigin:newOrigin thumbHeight:newHeight.
|
|
361 |
self enableDisableButtons
|
|
362 |
!
|
|
363 |
|
0
|
364 |
thumbColor:aColor
|
7
|
365 |
"set the thumbs color"
|
|
366 |
|
0
|
367 |
thumb thumbColor:aColor
|
|
368 |
!
|
|
369 |
|
|
370 |
thumbOrigin
|
7
|
371 |
"return position of (top of) thumb in percent"
|
0
|
372 |
|
|
373 |
^ thumb thumbOrigin
|
|
374 |
!
|
|
375 |
|
|
376 |
thumbOrigin:newOrigin
|
|
377 |
"set position of (top of) thumb in percent"
|
|
378 |
|
128
|
379 |
thumb thumbOrigin:newOrigin.
|
|
380 |
self enableDisableButtons
|
0
|
381 |
!
|
|
382 |
|
|
383 |
thumbHeight
|
7
|
384 |
"return height of thumb in percent"
|
0
|
385 |
|
|
386 |
^ thumb thumbHeight
|
|
387 |
!
|
|
388 |
|
|
389 |
thumbHeight:newHeight
|
|
390 |
"set height of thumb in percent"
|
|
391 |
|
128
|
392 |
thumb thumbHeight:newHeight.
|
|
393 |
self enableDisableButtons
|
0
|
394 |
! !
|
|
395 |
|
|
396 |
!ScrollBar methodsFor:'events'!
|
|
397 |
|
|
398 |
sizeChanged:how
|
128
|
399 |
"when my size changes, I have to resize/reposition the subviews.
|
|
400 |
Also, if I became too small, hide thumb/buttons."
|
0
|
401 |
|
59
|
402 |
|upHeight downHeight thumbHeight upAndDownHeight bwn sep2
|
130
|
403 |
thumbWidth w style b1Hidden b2Hidden thumbHidden bY|
|
0
|
404 |
|
|
405 |
button1 isNil ifTrue:[^ self].
|
|
406 |
thumb isNil ifTrue:[^ self].
|
|
407 |
button2 isNil ifTrue:[^ self].
|
|
408 |
|
130
|
409 |
style := styleSheet name.
|
128
|
410 |
|
0
|
411 |
upHeight := button1 height + borderWidth.
|
|
412 |
downHeight := button2 height + borderWidth.
|
|
413 |
upAndDownHeight := upHeight + downHeight.
|
3
|
414 |
bwn := borderWidth negated + margin.
|
0
|
415 |
|
59
|
416 |
thumbHeight := height - upAndDownHeight - borderWidth - (elementSpacing * 3).
|
3
|
417 |
"
|
130
|
418 |
((buttonLayout ~~ #top) and:[buttonLayout ~~ #bottom]) ifTrue:[
|
59
|
419 |
thumbHeight := thumbHeight - borderWidth
|
0
|
420 |
].
|
3
|
421 |
"
|
130
|
422 |
buttonLayout == #around ifTrue:[
|
59
|
423 |
thumbHeight := thumbHeight + borderWidth
|
3
|
424 |
].
|
0
|
425 |
|
|
426 |
"if I become too small, hide buttons and thumb"
|
|
427 |
|
130
|
428 |
height < upAndDownHeight ifTrue:[
|
|
429 |
b1Hidden := b2Hidden := thumbHidden := true.
|
0
|
430 |
] ifFalse:[
|
130
|
431 |
b1Hidden := b2Hidden := thumbHidden := false.
|
0
|
432 |
].
|
|
433 |
|
|
434 |
(thumbHeight < 10) ifTrue:[
|
130
|
435 |
thumbHidden := true.
|
|
436 |
] ifFalse:[
|
|
437 |
thumbHidden := false.
|
|
438 |
].
|
|
439 |
|
|
440 |
button1 hiddenOnRealize:b1Hidden.
|
|
441 |
b1Hidden ifTrue:[
|
|
442 |
button1 unrealize
|
0
|
443 |
] ifFalse:[
|
130
|
444 |
shown ifTrue:[button1 realize]
|
|
445 |
].
|
|
446 |
button2 hiddenOnRealize:b1Hidden.
|
|
447 |
b2Hidden ifTrue:[
|
|
448 |
button2 unrealize
|
|
449 |
] ifFalse:[
|
|
450 |
shown ifTrue:[button2 realize]
|
|
451 |
].
|
|
452 |
thumb hiddenOnRealize:thumbHidden.
|
|
453 |
thumbHidden ifTrue:[
|
|
454 |
thumb unrealize
|
|
455 |
] ifFalse:[
|
|
456 |
shown ifTrue:[thumb realize]
|
0
|
457 |
].
|
|
458 |
|
|
459 |
"width of buttons is always my width"
|
|
460 |
|
3
|
461 |
w := width - (margin * 2).
|
|
462 |
(w ~~ button1 width) ifTrue:[
|
59
|
463 |
button1 width:w.
|
|
464 |
button2 width:w
|
0
|
465 |
].
|
|
466 |
|
3
|
467 |
thumbWidth := w.
|
128
|
468 |
style == #next ifTrue:[
|
59
|
469 |
thumbWidth := thumbWidth - (thumb borderWidth * 2).
|
|
470 |
thumbHeight := thumbHeight - 1
|
0
|
471 |
].
|
128
|
472 |
style == #motif ifTrue:[
|
63
|
473 |
thumbHeight := thumbHeight - margin
|
|
474 |
].
|
0
|
475 |
|
38
|
476 |
"
|
|
477 |
a kludge: views with width or height of 0 are illegal
|
|
478 |
avoid error from view-creation (it will be hidden anyway)
|
|
479 |
"
|
|
480 |
thumbHeight <= 0 ifTrue:[
|
59
|
481 |
thumbHeight := 1
|
38
|
482 |
].
|
|
483 |
|
130
|
484 |
(buttonLayout == #top) ifTrue:[
|
59
|
485 |
"buttons at top"
|
|
486 |
thumb extent:(thumbWidth @ thumbHeight).
|
|
487 |
^ self
|
0
|
488 |
].
|
|
489 |
|
59
|
490 |
sep2 := elementSpacing * 2.
|
130
|
491 |
(buttonLayout == #bottom) ifTrue:[
|
59
|
492 |
"buttons at bottom"
|
|
493 |
thumbHeight := thumbHeight + borderWidth.
|
130
|
494 |
thumbHidden ifTrue:[
|
|
495 |
bY := elementSpacing
|
|
496 |
] ifFalse:[
|
|
497 |
bY := thumbHeight + sep2.
|
|
498 |
].
|
59
|
499 |
(how == #smaller) ifTrue:[
|
|
500 |
thumb extent:(thumbWidth @ thumbHeight).
|
63
|
501 |
"/ button1 origin:(bwn @ (thumbHeight + sep2)).
|
|
502 |
"/ button2 origin:(bwn @ (thumbHeight + sep2 + upHeight))
|
59
|
503 |
] ifFalse:[
|
130
|
504 |
button1 origin:(bwn @ bY).
|
|
505 |
button2 origin:(bwn @ (bY + upHeight)).
|
59
|
506 |
thumb extent:(thumbWidth @ thumbHeight)
|
|
507 |
].
|
|
508 |
^ self
|
0
|
509 |
].
|
|
510 |
"buttons around thumb"
|
|
511 |
|
128
|
512 |
style == #motif ifTrue:[
|
|
513 |
sep2 := sep2 + 1
|
|
514 |
].
|
3
|
515 |
button1 origin:(bwn @ bwn).
|
128
|
516 |
|
|
517 |
style == #os2 ifTrue:[
|
|
518 |
button2 origin:(bwn @ (upHeight + thumbHeight + sep2 - margin "+ borderWidth")).
|
|
519 |
thumb extent:(thumbWidth @ (thumbHeight - margin - margin "+ margin - (margin // 2)")).
|
|
520 |
thumb origin:(bwn @ (upHeight - borderWidth + elementSpacing + margin))
|
|
521 |
] ifFalse:[
|
|
522 |
button2 origin:(bwn @ (upHeight + thumbHeight + sep2 - (margin // 2) "+ borderWidth")).
|
|
523 |
thumb extent:(thumbWidth @ (thumbHeight + margin - (margin // 2))).
|
|
524 |
thumb origin:(bwn @ (upHeight - borderWidth + elementSpacing))
|
|
525 |
].
|
0
|
526 |
! !
|
110
|
527 |
|
|
528 |
!ScrollBar methodsFor:'forced scroll'!
|
|
529 |
|
|
530 |
pageUp
|
|
531 |
"page up/left"
|
|
532 |
|
|
533 |
thumb pageUp
|
|
534 |
!
|
|
535 |
|
|
536 |
pageDown
|
|
537 |
"page down/right"
|
|
538 |
|
|
539 |
thumb pageDown
|
|
540 |
! !
|