Scroller.st
changeset 695 1c52a7c0166d
parent 689 1f0e278ce283
child 699 6b464bf0ced8
equal deleted inserted replaced
694:dfc7ec6d2e5c 695:1c52a7c0166d
   984     "draw part of the thumbs background; defined as a separate
   984     "draw part of the thumbs background; defined as a separate
   985      method, to allow drawing of arbitrary patterns under thumb 
   985      method, to allow drawing of arbitrary patterns under thumb 
   986      (see ColorSlider)."
   986      (see ColorSlider)."
   987 
   987 
   988     shown ifTrue:[
   988     shown ifTrue:[
   989 	self clearRectangleX:x y:y width:w height:h.
   989         self clearRectangleX:x y:y width:w height:h.
   990 	frameBeforeMove notNil ifTrue:[
   990         frameBeforeMove notNil ifTrue:[
   991 	    self clippedTo:(Rectangle left:x top:y width:w height:h) do:[
   991             self clippedTo:(Rectangle left:x top:y width:w height:h) do:[
   992 		|gX gY gW gH|
   992                 |gX gY gW gH|
   993 
   993 
   994 		gX := frameBeforeMove left.
   994                 gX := frameBeforeMove left.
   995 		gY := frameBeforeMove top.
   995                 gY := frameBeforeMove top.
   996 		gW := frameBeforeMove width.
   996                 gW := frameBeforeMove width.
   997 		gH := frameBeforeMove height.
   997                 gH := frameBeforeMove height.
   998                 
   998                 
   999 		ghostColor notNil ifTrue:[
   999                 ghostColor notNil ifTrue:[
  1000 		    self fillRectangle:frameBeforeMove with:ghostColor.
  1000                     self paint:ghostColor.
  1001 		].
  1001                     self fillRectangle:frameBeforeMove.
  1002 		(ghostLevel ~~ 0) ifTrue:[
  1002                 ].
  1003 		    self drawEdgesForX:gX y:gY width:gW height:gH level:ghostLevel
  1003                 (ghostLevel ~~ 0) ifTrue:[
  1004 		].
  1004                     self drawEdgesForX:gX y:gY width:gW height:gH level:ghostLevel
  1005 		ghostFrameColor notNil ifTrue:[
  1005                 ].
  1006 		    self paint:ghostFrameColor.
  1006                 ghostFrameColor notNil ifTrue:[
  1007 		    self displayRectangleX:gX y:gY width:gW height:gH
  1007                     self paint:ghostFrameColor.
  1008 		]
  1008                     self displayRectangleX:gX y:gY width:gW height:gH
  1009 	    ]
  1009                 ]
  1010 	]
  1010             ]
       
  1011         ]
  1011     ]
  1012     ]
       
  1013 
       
  1014     "Modified: 28.5.1996 / 19:00:01 / cg"
  1012 ! !
  1015 ! !
  1013 
  1016 
  1014 !Scroller methodsFor:'event handling'!
  1017 !Scroller methodsFor:'event handling'!
  1015 
  1018 
  1016 buttonMotion:state x:x y:y
  1019 buttonMotion:state x:x y:y
  1765 ! !
  1768 ! !
  1766 
  1769 
  1767 !Scroller class methodsFor:'documentation'!
  1770 !Scroller class methodsFor:'documentation'!
  1768 
  1771 
  1769 version
  1772 version
  1770     ^ '$Header: /cvs/stx/stx/libwidg/Scroller.st,v 1.53 1996-05-26 11:36:58 cg Exp $'
  1773     ^ '$Header: /cvs/stx/stx/libwidg/Scroller.st,v 1.54 1996-05-28 17:08:55 cg Exp $'
  1771 ! !
  1774 ! !