author | Claus Gittinger <cg@exept.de> |
Sat, 02 May 2020 13:15:17 +0200 | |
changeset 6243 | 949681aaf3e4 |
parent 4010 | 34cc746561a6 |
permissions | -rw-r--r-- |
23 | 1 |
" |
2 |
COPYRIGHT (c) 1994 by Claus Gittinger |
|
49 | 3 |
All Rights Reserved |
23 | 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 |
" |
|
1982 | 12 |
"{ Package: 'stx:libwidg2' }" |
13 |
||
23 | 14 |
ScrollBar subclass:#SteppingSlider |
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
15 |
instanceVariableNames:'stepIncrement' |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
16 |
classVariableNames:'' |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
17 |
poolDictionaries:'' |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
18 |
category:'Views-Interactors' |
23 | 19 |
! |
20 |
||
21 |
!SteppingSlider class methodsFor:'documentation'! |
|
22 |
||
23 |
copyright |
|
24 |
" |
|
25 |
COPYRIGHT (c) 1994 by Claus Gittinger |
|
49 | 26 |
All Rights Reserved |
23 | 27 |
|
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
37 |
documentation |
|
38 |
" |
|
39 |
SteppingSliders are like Sliders, but add step-up and step-down |
|
40 |
buttons (which increment/decrement the value). |
|
57 | 41 |
(you can also think of them as a ScrollBar with a slider instead of |
42 |
a scroller as component) |
|
23 | 43 |
" |
49 | 44 |
! |
45 |
||
46 |
examples |
|
47 |
" |
|
48 |
non model operation: |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
49 |
[exBegin] |
49 | 50 |
|top sl| |
51 |
||
52 |
top := StandardSystemView extent:200@200. |
|
53 |
sl := SteppingSlider in:top. |
|
54 |
sl origin:(0.0@0.0) corner:(sl width@1.0). |
|
184 | 55 |
sl scrollAction:[:pos | Transcript showCR:pos]. |
49 | 56 |
top open |
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
57 |
[exEnd] |
49 | 58 |
|
59 |
||
57 | 60 |
change the step: |
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
61 |
[exBegin] |
57 | 62 |
|top sl| |
49 | 63 |
|
64 |
top := StandardSystemView extent:200@200. |
|
65 |
sl := SteppingSlider in:top. |
|
66 |
sl origin:(0.0@0.0) corner:(sl width@1.0). |
|
184 | 67 |
sl scrollAction:[:pos | Transcript showCR:pos]. |
57 | 68 |
sl stepIncrement:10. |
69 |
top open |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
70 |
[exEnd] |
57 | 71 |
|
72 |
||
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
73 |
model operation (watch the value): |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
74 |
[exBegin] |
57 | 75 |
|model top sl fld| |
76 |
||
77 |
model := 0 asValue. |
|
78 |
||
79 |
top := StandardSystemView extent:200@200. |
|
80 |
top label:'slider on model'. |
|
81 |
sl := SteppingSlider in:top. |
|
82 |
sl origin:(0.0@0.0) corner:(sl width@1.0). |
|
49 | 83 |
sl model:model. |
57 | 84 |
top open. |
85 |
||
86 |
top := StandardSystemView extent:200@200. |
|
87 |
top label:'inputField on model'. |
|
88 |
fld := EditField in:top. |
|
89 |
fld origin:(0.0@0.0) corner:(1.0 @ fld height). |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
90 |
fld converter:(PrintConverter new initForNumber); model:model. |
49 | 91 |
top open |
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
92 |
[exEnd] |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
93 |
|
23 | 94 |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
95 |
two views on the same model: |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
96 |
[exBegin] |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
97 |
|model top sl fld| |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
98 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
99 |
model := 0 asValue. |
23 | 100 |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
101 |
top := StandardSystemView extent:200@200. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
102 |
top label:'slider on model'. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
103 |
sl := SteppingSlider in:top. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
104 |
sl origin:(0.0@0.0) corner:(sl width@1.0). |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
105 |
sl model:model. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
106 |
top open. |
23 | 107 |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
108 |
top := StandardSystemView extent:200@200. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
109 |
top label:'slider on model'. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
110 |
sl := ThumbWheel in:top. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
111 |
sl origin:(0.0@0.0) corner:(20@1.0). |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
112 |
sl model:model. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
113 |
top open. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
114 |
[exEnd] |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
115 |
" |
49 | 116 |
! ! |
117 |
||
118 |
!SteppingSlider methodsFor:'accessing'! |
|
119 |
||
120 |
model:aModel |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
121 |
"set the model - forwarded to the thumb. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
122 |
if nonNil, this will get the thumbs origin |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
123 |
via #value: messages" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
124 |
|
49 | 125 |
thumb model:aModel |
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
126 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
127 |
"Modified: 28.5.1997 / 15:07:55 / cg" |
57 | 128 |
! |
129 |
||
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
130 |
start:start stop:stop step:step |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
131 |
"set start (min), stop (max) and step increment. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
132 |
The increment is used when clicking on a step button" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
133 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
134 |
thumb start:start stop:stop. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
135 |
stepIncrement := step |
57 | 136 |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
137 |
"Modified: 28.5.1997 / 15:03:56 / cg" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
138 |
! |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
139 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
140 |
step |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
141 |
"return the step increment. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
142 |
The increment is used when clicking on a step button" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
143 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
144 |
^ stepIncrement |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
145 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
146 |
"Modified: 28.5.1997 / 15:04:01 / cg" |
65 | 147 |
! |
148 |
||
149 |
step:aNumber |
|
150 |
"same as stepIncrement; |
|
151 |
set the value used for stepping (defaults to 1)" |
|
152 |
||
153 |
stepIncrement := aNumber |
|
154 |
! |
|
155 |
||
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
156 |
stepIncrement:aNumber |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
157 |
"set the value used for stepping (defaults to 1). |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
158 |
Same as #step: for compatibility." |
65 | 159 |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
160 |
stepIncrement := aNumber |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
161 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
162 |
"Modified: 28.5.1997 / 15:04:25 / cg" |
65 | 163 |
! ! |
164 |
||
2129 | 165 |
!SteppingSlider methodsFor:'event handling'! |
166 |
||
167 |
keyPress:key x:x y:y |
|
4010 | 168 |
<resource: #keyboard (#CursorRight #CursorUp #CursorLeft #CursorDown #+ #-)> |
2129 | 169 |
|
170 |
|step| |
|
171 |
"/ enabled ifFalse:[^ self]. |
|
172 |
||
173 |
step := thumb keyboardStep ? stepIncrement. |
|
174 |
||
175 |
(key == #CursorLeft |
|
176 |
or:[key == #CursorUp |
|
177 |
or:[key == $-]]) ifTrue:[ |
|
178 |
self scrollStep:step negated. |
|
179 |
^ self |
|
180 |
]. |
|
181 |
||
182 |
(key == #CursorRight |
|
183 |
or:[key == #CursorDown |
|
184 |
or:[key == $+]]) ifTrue:[ |
|
185 |
self scrollStep:step. |
|
186 |
^ self |
|
187 |
]. |
|
188 |
||
189 |
super keyPress:key x:x y:y |
|
190 |
! ! |
|
191 |
||
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
192 |
!SteppingSlider methodsFor:'initialization'! |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
193 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
194 |
createElements |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
195 |
"create the scroller and the two step buttons" |
65 | 196 |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
197 |
self orientation == #horizontal ifTrue:[ |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
198 |
button1 := ArrowButton leftIn:self. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
199 |
button1 name:'LeftButton'. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
200 |
button2 := ArrowButton rightIn:self. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
201 |
button2 name:'RightButton'. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
202 |
thumb := HorizontalSlider in:self. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
203 |
] ifFalse:[ |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
204 |
button1 := ArrowButton upIn:self. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
205 |
button1 name:'UpButton'. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
206 |
button2 := ArrowButton downIn:self. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
207 |
button2 name:'DownButton'. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
208 |
thumb := Slider in:self. |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
209 |
]. |
65 | 210 |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
211 |
"Modified: 28.5.1997 / 15:09:50 / cg" |
65 | 212 |
! |
213 |
||
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
214 |
initialize |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
215 |
"initialize; the increment is set to 1 (one)" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
216 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
217 |
super initialize. |
65 | 218 |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
219 |
stepIncrement := 1. |
402
db4b13aff9c9
more code moved to superclass
Claus Gittinger <cg@exept.de>
parents:
400
diff
changeset
|
220 |
buttonLayout := #around. |
db4b13aff9c9
more code moved to superclass
Claus Gittinger <cg@exept.de>
parents:
400
diff
changeset
|
221 |
|
1982 | 222 |
self scrollDownAction:[self scrollStepDown]. |
223 |
self scrollUpAction:[self scrollStepUp]. |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
224 |
|
402
db4b13aff9c9
more code moved to superclass
Claus Gittinger <cg@exept.de>
parents:
400
diff
changeset
|
225 |
"Modified: 28.5.1997 / 16:12:04 / cg" |
23 | 226 |
! ! |
227 |
||
228 |
!SteppingSlider methodsFor:'misc'! |
|
229 |
||
230 |
doesNotUnderstand:aMessage |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
231 |
"forward any unimplemented message to the scroller" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
232 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
233 |
^ aMessage sendTo:thumb |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
234 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
235 |
"Modified: 28.5.1997 / 15:05:37 / cg" |
23 | 236 |
! ! |
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
237 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
238 |
!SteppingSlider methodsFor:'private'! |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
239 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
240 |
scrollStep:delta |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
241 |
"step by some delta" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
242 |
|
871 | 243 |
thumb scrollStep:delta |
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
244 |
|
871 | 245 |
"Modified: / 21.4.1998 / 20:52:49 / cg" |
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
246 |
! |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
247 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
248 |
scrollStepDown |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
249 |
"sent when the step-down button is pressd" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
250 |
|
1982 | 251 |
self scrollStep:stepIncrement |
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
252 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
253 |
"Modified: 28.5.1997 / 15:11:02 / cg" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
254 |
! |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
255 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
256 |
scrollStepUp |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
257 |
"sent when the step-up button is pressd" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
258 |
|
1982 | 259 |
self scrollStep:stepIncrement negated |
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
260 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
261 |
"Modified: 28.5.1997 / 15:11:08 / cg" |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
262 |
! ! |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
263 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
264 |
!SteppingSlider class methodsFor:'documentation'! |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
265 |
|
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
266 |
version |
4010 | 267 |
^ '$Header: /cvs/stx/stx/libwidg2/SteppingSlider.st,v 1.14 2011-02-05 17:37:29 stefan Exp $' |
268 |
! |
|
269 |
||
270 |
version_CVS |
|
271 |
^ '$Header: /cvs/stx/stx/libwidg2/SteppingSlider.st,v 1.14 2011-02-05 17:37:29 stefan Exp $' |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
184
diff
changeset
|
272 |
! ! |