HorizontalScroller.st
author ca
Fri, 09 Feb 1996 13:48:15 +0100
changeset 338 9cbc51998a23
parent 205 6814c0bf8df8
child 538 b747ea31b972
permissions -rw-r--r--
oops
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
138
claus
parents: 130
diff changeset
     1
"
claus
parents: 130
diff changeset
     2
 COPYRIGHT (c) 1989 by Claus Gittinger
150
claus
parents: 138
diff changeset
     3
	      All Rights Reserved
138
claus
parents: 130
diff changeset
     4
claus
parents: 130
diff changeset
     5
 This software is furnished under a license and may be used
claus
parents: 130
diff changeset
     6
 only in accordance with the terms of that license and with the
claus
parents: 130
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
claus
parents: 130
diff changeset
     8
 be provided or otherwise made available to, or used by, any
claus
parents: 130
diff changeset
     9
 other person.  No title to or ownership of the software is
claus
parents: 130
diff changeset
    10
 hereby transferred.
claus
parents: 130
diff changeset
    11
"
claus
parents: 130
diff changeset
    12
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    13
Scroller subclass:#HorizontalScroller
118
claus
parents: 38
diff changeset
    14
	 instanceVariableNames:''
claus
parents: 38
diff changeset
    15
	 classVariableNames:''
claus
parents: 38
diff changeset
    16
	 poolDictionaries:''
claus
parents: 38
diff changeset
    17
	 category:'Views-Interactors'
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    18
!
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    19
138
claus
parents: 130
diff changeset
    20
!HorizontalScroller class methodsFor:'documentation'!
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    21
138
claus
parents: 130
diff changeset
    22
copyright
claus
parents: 130
diff changeset
    23
"
claus
parents: 130
diff changeset
    24
 COPYRIGHT (c) 1989 by Claus Gittinger
150
claus
parents: 138
diff changeset
    25
	      All Rights Reserved
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    26
138
claus
parents: 130
diff changeset
    27
 This software is furnished under a license and may be used
claus
parents: 130
diff changeset
    28
 only in accordance with the terms of that license and with the
claus
parents: 130
diff changeset
    29
 inclusion of the above copyright notice.   This software may not
claus
parents: 130
diff changeset
    30
 be provided or otherwise made available to, or used by, any
claus
parents: 130
diff changeset
    31
 other person.  No title to or ownership of the software is
claus
parents: 130
diff changeset
    32
 hereby transferred.
claus
parents: 130
diff changeset
    33
"
claus
parents: 130
diff changeset
    34
!
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    35
150
claus
parents: 138
diff changeset
    36
documentation
claus
parents: 138
diff changeset
    37
"
claus
parents: 138
diff changeset
    38
    Actually simply a scroller which preinitializes itself to have
claus
parents: 138
diff changeset
    39
    a horizontal orientation.
claus
parents: 138
diff changeset
    40
"
205
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    41
! !
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    42
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    43
!HorizontalScroller methodsFor:'accessing-behavior'!
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    44
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    45
scrollLeftAction:aBlock
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    46
    "ignored -
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    47
     but implemented, so that scroller can be used in place of a scrollbar"
150
claus
parents: 138
diff changeset
    48
!
claus
parents: 138
diff changeset
    49
205
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    50
scrollRightAction:aBlock
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    51
    "ignored -
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    52
     but implemented, so that scroller can be used in place of a scrollbar"
138
claus
parents: 130
diff changeset
    53
! !
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    54
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    55
!HorizontalScroller methodsFor:'initialization'!
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    56
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    57
initialize
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    58
    super initialize.
118
claus
parents: 38
diff changeset
    59
    orientation := #horizontal 
0
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    60
! !
e6a541c1c0eb Initial revision
claus
parents:
diff changeset
    61
130
claus
parents: 127
diff changeset
    62
!HorizontalScroller methodsFor:'queries'!
claus
parents: 127
diff changeset
    63
claus
parents: 127
diff changeset
    64
preferredExtent
claus
parents: 127
diff changeset
    65
    |w h|
claus
parents: 127
diff changeset
    66
claus
parents: 127
diff changeset
    67
    w := self class defaultExtent x.
claus
parents: 127
diff changeset
    68
    h := (device verticalPixelPerMillimeter asFloat * 6) rounded.
claus
parents: 127
diff changeset
    69
    ^ w @ h.
claus
parents: 127
diff changeset
    70
! !
205
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    71
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    72
!HorizontalScroller class methodsFor:'documentation'!
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    73
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    74
version
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    75
    ^ '$Header: /cvs/stx/stx/libwidg/HorizontalScroller.st,v 1.12 1995-11-23 18:18:00 cg Exp $'
6814c0bf8df8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 174
diff changeset
    76
! !