Squeak Class Documentation category index | class index  
 
TwoWayScrollPane
  category: Morphic-Windows
  superclass: ComponentLikeModel
  subclasses: PluggableTileScriptorMorph

The scroller (a transform) of a scrollPane is driven by the scrollBar. The scroll values vary from 0.0, meaning zero offset to 1.0 meaning sufficient offset such that the bottom of the scrollable material appears halfway down the pane. The total distance to achieve this range is called the totalScrollRange.

instance methods
  access
  colorForInsets
scroller
wantsSlot

  geometry
  containsPoint:
extent:
fitContents
leftoverScrollRange
resizeScrollBar
resizeScroller
scrollBarFills:
scrollBy:
scrollIntoView:extra:
setScrollDeltas
totalScrollRange

  initialization
  initialize

  layout
  doLayoutIn:

  menu
  addCustomMenuItems:hand:
getMenu:
leftOrRight
menuTitleSelector:
retractableOrNot
scrollBarOnLeft:

  pane events
  handlesMouseDown:
handlesMouseOver:
keyStroke:
mouseDown:
mouseMove:
mouseUp:
rejectsEvent:

  retractable scroll bar
  hideOrShowScrollBar
hideOrShowScrollBar:forRange:
mouseEnter:
mouseLeave:
xScrollerHeight

  scroll bar events
  scrollBarMenuButtonPressed:
shiftedYellowButtonActivity
unshiftedYellowButtonActivity
xScrollBarMenuButtonPressed:
xScrollBarValue:
yScrollBarMenuButtonPressed:
yScrollBarValue:
yellowButtonActivity:

class methods
  as yet unclassified
  includeInNewMorphMenu

instance methods
  access top  
 

colorForInsets

My submorphs use the surrounding color


 

scroller


 

wantsSlot

For now do it the old way, until we sort this out


  geometry top  
 

containsPoint:


 

extent:


 

fitContents

Adjust my size to fit my contents reasonably snugly


 

leftoverScrollRange

Return the entire scrolling range minus the currently viewed area.


 

resizeScrollBar

used to handle left vs right scrollbar


 

resizeScroller

used to handle left vs right scrollbar


 

scrollBarFills:

Return true if a flop-out scrollbar fills the rectangle


 

scrollBy:

Move the contents in the direction delta.


 

scrollIntoView:extra:


 

setScrollDeltas


 

totalScrollRange

Return the entire scrolling range.


  initialization top  
 

initialize


  layout top  
 

doLayoutIn:

layout has changed. update scroll deltas or whatever else


  menu top  
 

addCustomMenuItems:hand:

Add morph-specific items to the given menu which was invoked by the given hand. This method provides is invoked both from the halo-menu and from the control-menu regimes.


 

getMenu:

Answer the menu for this text view, supplying an empty menu to be filled in. If the menu selector takes an extra argument, pass in the current state of the shift key.


 

leftOrRight

Change scroll bar location


 

menuTitleSelector:


 

retractableOrNot

Change scroll bar operation


 

scrollBarOnLeft:

used to handle left vs right scrollbar


  pane events top  
 

handlesMouseDown:

Do I want to receive mouseDown events (mouseDown:, mouseMove:, mouseUp:)?


 

handlesMouseOver:

Do I want to receive mouseEnter: and mouseLeave: when the button is up and the hand is empty? The default response is false, except if you have added sensitivity to mouseEnter: or mouseLeave:, using the on:send:to: mechanism.


 

keyStroke:

If pane is not full, pass the event to the last submorph,
assuming it is the most appropriate recipient (!)


 

mouseDown:

Handle a mouse down event. The default response is to let my eventHandler, if any, handle it.


 

mouseMove:

If pane is not full, pass the event to the last submorph,
assuming it is the most appropriate recipient (!)


 

mouseUp:

If pane is not full, pass the event to the last submorph,
assuming it is the most appropriate recipient (!)


 

rejectsEvent:

Return true to reject the given event. Rejecting an event means neither the receiver nor any of it's submorphs will be given any chance to handle it.


  retractable scroll bar top  
 

hideOrShowScrollBar


 

hideOrShowScrollBar:forRange:


 

mouseEnter:

used to handle retractable scrolbar


 

mouseLeave:

used to handle retractable scrolbar


 

xScrollerHeight


  scroll bar events top  
 

scrollBarMenuButtonPressed:


 

shiftedYellowButtonActivity


 

unshiftedYellowButtonActivity


 

xScrollBarMenuButtonPressed:


 

xScrollBarValue:

although there appear to be no senders, see Slider>>setValue:


 

yScrollBarMenuButtonPressed:


 

yScrollBarValue:

although there appear to be no senders, see Slider>>setValue:


 

yellowButtonActivity:


class methods
  as yet unclassified top  
 

includeInNewMorphMenu

OK to instantiate