author | Claus Gittinger <cg@exept.de> |
Thu, 07 Mar 2019 10:42:40 +0100 | |
changeset 6031 | 608583d9fea7 |
parent 3150 | e3a55f15ef7e |
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 |
" |
|
12 |
||
3150 | 13 |
"{ Package: 'stx:libwidg2' }" |
14 |
||
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
15 |
SteppingSlider subclass:#HorizontalSteppingSlider |
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
16 |
instanceVariableNames:'' |
122 | 17 |
classVariableNames:'' |
18 |
poolDictionaries:'' |
|
19 |
category:'Views-Interactors' |
|
23 | 20 |
! |
21 |
||
22 |
!HorizontalSteppingSlider class methodsFor:'documentation'! |
|
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1994 by Claus Gittinger |
|
49 | 27 |
All Rights Reserved |
23 | 28 |
|
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
38 |
documentation |
|
39 |
" |
|
40 |
HorizontalSteppingSliders are like HorizontalSliders, but add step-up and step-down |
|
41 |
buttons (which increment/decrement the value). |
|
401 | 42 |
|
43 |
[author:] |
|
3150 | 44 |
Claus Gittinger |
401 | 45 |
|
46 |
[see also:] |
|
3150 | 47 |
HorizontalScrollBar HorizontalScroller HorizontalSlider |
48 |
ThumbWheel |
|
23 | 49 |
" |
49 | 50 |
! |
51 |
||
3150 | 52 |
examples |
49 | 53 |
" |
401 | 54 |
see more examples in my superclass, SteppingSlider |
3150 | 55 |
[exBegin] |
49 | 56 |
|top sl| |
57 |
||
58 |
top := StandardSystemView extent:200@200. |
|
59 |
sl := HorizontalSteppingSlider in:top. |
|
400
d176fd820716
merged common code from steppingSlider & horizontalSteppingSlider
Claus Gittinger <cg@exept.de>
parents:
267
diff
changeset
|
60 |
sl origin:(0.0@0.0) corner:(1.0@(sl preferredExtent y)). |
3150 | 61 |
sl scrollAction:[:pos | Transcript showCR:pos]. |
49 | 62 |
top open |
3150 | 63 |
[exEnd] |
49 | 64 |
" |
23 | 65 |
! ! |
66 |
||
1469 | 67 |
!HorizontalSteppingSlider methodsFor:'initialization'! |
23 | 68 |
|
1469 | 69 |
initialize |
3150 | 70 |
orientation := #horizontal. |
1469 | 71 |
super initialize. |
65 | 72 |
|
1469 | 73 |
|
23 | 74 |
! ! |
75 |
||
122 | 76 |
!HorizontalSteppingSlider class methodsFor:'documentation'! |
23 | 77 |
|
122 | 78 |
version |
3150 | 79 |
^ '$Header: /cvs/stx/stx/libwidg2/HorizontalSteppingSlider.st,v 1.13 2006-11-13 16:11:30 cg Exp $' |
23 | 80 |
! ! |