author | Claus Gittinger <cg@exept.de> |
Thu, 23 Nov 1995 01:50:10 +0100 | |
changeset 193 | 6ccc226ce3a6 |
parent 174 | d80a6cc3f9b2 |
child 205 | 6814c0bf8df8 |
permissions | -rw-r--r-- |
138 | 1 |
" |
2 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
150 | 3 |
All Rights Reserved |
138 | 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 |
||
118 | 13 |
'From Smalltalk/X, Version:2.10.5 on 30-apr-1995 at 1:46:18 am'! |
0 | 14 |
|
15 |
Scroller subclass:#HorizontalScroller |
|
118 | 16 |
instanceVariableNames:'' |
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Views-Interactors' |
|
0 | 20 |
! |
21 |
||
138 | 22 |
!HorizontalScroller class methodsFor:'documentation'! |
0 | 23 |
|
138 | 24 |
copyright |
25 |
" |
|
26 |
COPYRIGHT (c) 1989 by Claus Gittinger |
|
150 | 27 |
All Rights Reserved |
0 | 28 |
|
138 | 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 |
! |
|
0 | 37 |
|
150 | 38 |
documentation |
39 |
" |
|
40 |
Actually simply a scroller which preinitializes itself to have |
|
41 |
a horizontal orientation. |
|
42 |
" |
|
43 |
! |
|
44 |
||
138 | 45 |
version |
174
d80a6cc3f9b2
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
150
diff
changeset
|
46 |
^ '$Header: /cvs/stx/stx/libwidg/Attic/HScroller.st,v 1.11 1995-11-11 16:20:41 cg Exp $' |
138 | 47 |
! ! |
0 | 48 |
|
49 |
!HorizontalScroller methodsFor:'initialization'! |
|
50 |
||
51 |
initialize |
|
52 |
super initialize. |
|
118 | 53 |
orientation := #horizontal |
0 | 54 |
! ! |
55 |
||
127 | 56 |
!HorizontalScroller methodsFor:'accessing-behavior'! |
0 | 57 |
|
118 | 58 |
scrollRightAction:aBlock |
59 |
"ignored - |
|
60 |
but implemented, so that scroller can be used in place of a scrollbar" |
|
0 | 61 |
! |
62 |
||
38 | 63 |
scrollLeftAction:aBlock |
64 |
"ignored - |
|
65 |
but implemented, so that scroller can be used in place of a scrollbar" |
|
118 | 66 |
! ! |
0 | 67 |
|
130 | 68 |
!HorizontalScroller methodsFor:'queries'! |
69 |
||
70 |
preferredExtent |
|
71 |
|w h| |
|
72 |
||
73 |
w := self class defaultExtent x. |
|
74 |
h := (device verticalPixelPerMillimeter asFloat * 6) rounded. |
|
75 |
^ w @ h. |
|
76 |
! ! |