HorizontalScroller.st
author Claus Gittinger <cg@exept.de>
Thu, 18 Jan 1996 01:11:18 +0100
changeset 295 aa5887bff1b2
parent 205 6814c0bf8df8
child 538 b747ea31b972
permissions -rw-r--r--
*** empty log message ***

"
 COPYRIGHT (c) 1989 by Claus Gittinger
	      All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"

Scroller subclass:#HorizontalScroller
	 instanceVariableNames:''
	 classVariableNames:''
	 poolDictionaries:''
	 category:'Views-Interactors'
!

!HorizontalScroller class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1989 by Claus Gittinger
	      All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
!

documentation
"
    Actually simply a scroller which preinitializes itself to have
    a horizontal orientation.
"
! !

!HorizontalScroller methodsFor:'accessing-behavior'!

scrollLeftAction:aBlock
    "ignored -
     but implemented, so that scroller can be used in place of a scrollbar"
!

scrollRightAction:aBlock
    "ignored -
     but implemented, so that scroller can be used in place of a scrollbar"
! !

!HorizontalScroller methodsFor:'initialization'!

initialize
    super initialize.
    orientation := #horizontal 
! !

!HorizontalScroller methodsFor:'queries'!

preferredExtent
    |w h|

    w := self class defaultExtent x.
    h := (device verticalPixelPerMillimeter asFloat * 6) rounded.
    ^ w @ h.
! !

!HorizontalScroller class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libwidg/HorizontalScroller.st,v 1.12 1995-11-23 18:18:00 cg Exp $'
! !