MiniScr.st
author claus
Mon, 06 Feb 1995 01:53:30 +0100
changeset 77 565b052f5277
parent 64 c4e3323a5348
child 119 59758ff5b841
permissions -rw-r--r--
*** empty log message ***

"
 COPYRIGHT (c) 1994 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:#MiniScroller
	 instanceVariableNames:''
	 classVariableNames:''
	 poolDictionaries:''
	 category:'Views-Interactors'
!

MiniScroller comment:'
COPYRIGHT (c) 1994 by Claus Gittinger
	      All Rights Reserved

$Header: /cvs/stx/stx/libwidg/Attic/MiniScr.st,v 1.2 1994-11-17 14:40:37 claus Exp $
'!

!MiniScroller class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1994 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.
"
!

version
"
$Header: /cvs/stx/stx/libwidg/Attic/MiniScr.st,v 1.2 1994-11-17 14:40:37 claus Exp $
"
!

documentation
"
    like a scroller, but taking less screen space
"
! !

!MiniScroller methodsFor:'initialization'!

computeInitialExtent
    "make my width very small"

    |w h mm|

    h := self class defaultExtent y.
    mm := (thumbLevel ~~ 0) ifTrue:[2.5] ifFalse:[2.0].
    w := (device horizontalPixelPerMillimeter asFloat * mm) rounded.
    self extent:w @ h.
!

initStyle
    super initStyle.
    style == #iris ifTrue:[
	tallyLevel := 0.
	tallyMarks := 0.
	thumbEdgeStyle := nil.
	thumbLevel := 2.
    ].
    ((style ~~ #normal) and:[style ~~ #mswindows]) ifTrue:[
	style == #st80 ifTrue:[
	    self level:1.
	] ifFalse:[
	    self level:-1.
	].
	self borderWidth:0
    ].
    shadowForm := lightForm := nil.
    fixThumbHeight := false
! !