Squeak Class Documentation category index | class index  
 
ButtonProperties
  category: Morphic-Buttons
  superclass: Object
  subclasses:

ButtonProperties test1

ButtonProperties test2

ButtonProperties test3

instance methods
  accessing
  actWhen
actWhen:
actionSelector
actionSelector:
addTextToButton:
adjustPositionsAfterSizeChange
arguments
arguments:
bringUpToDate
currentLook
currentTextInButton
currentTextMorphsInButton
establishEtoyLabelWording
figureOutScriptSelector
isTileScriptingElement
lockAnyText
mouseDownHaloColor
mouseDownHaloColor:
mouseDownHaloWidth
mouseDownHaloWidth:
mouseDownLook:
mouseEnterLook:
mouseOverHaloColor
mouseOverHaloColor:
mouseOverHaloWidth
mouseOverHaloWidth:
privateSetLook:to:
setEventHandlers:
setLook:to:
stateCostumes
target
target:
unlockAnyText
visibleMorph:
wantsRolloverIndicator
wantsRolloverIndicator:

  copying
  updateReferencesUsing:
veryDeepFixupWith:
veryDeepInner:

  events
  addMouseOverHalo
delayBetweenFirings
delayBetweenFirings:
displayCostume:
doButtonAction
doButtonAction:
editButtonsScript:
mouseDown:
mouseEnter:
mouseLeave:
mouseMove:
mouseStillDown:
mouseUp:
replaceVisibleMorph:

  fileIn/Out
 

  initialization
  adaptToWorld:
initialize

  menu
  setActWhen
setActionSelector
setArguments
setLabel
setPageSound:
setPageVisual:
setTarget:

  visual properties
  updateVisualState:

class methods
  as yet unclassified
  defaultNameStemForInstances
ellipticalButtonWithText:
new
test1
test2
test3

instance methods
  accessing top  
 

actWhen


 

actWhen:


 

actionSelector


 

actionSelector:


 

addTextToButton:


 

adjustPositionsAfterSizeChange

re-center label, etc??


 

arguments


 

arguments:


 

bringUpToDate


 

currentLook


 

currentTextInButton


 

currentTextMorphsInButton


 

establishEtoyLabelWording

Set the label wording, unless it has already been manually edited


 

figureOutScriptSelector


 

isTileScriptingElement


 

lockAnyText


 

mouseDownHaloColor


 

mouseDownHaloColor:


 

mouseDownHaloWidth


 

mouseDownHaloWidth:


 

mouseDownLook:


 

mouseEnterLook:


 

mouseOverHaloColor


 

mouseOverHaloColor:


 

mouseOverHaloWidth


 

mouseOverHaloWidth:


 

privateSetLook:to:


 

setEventHandlers:


 

setLook:to:


 

stateCostumes


 

target


 

target:


 

unlockAnyText


 

visibleMorph:


 

wantsRolloverIndicator


 

wantsRolloverIndicator:


  copying top  
 

updateReferencesUsing:

If the arguments array points at a morph we are copying, then point at the new copy. And also copies the array, which is important!


 

veryDeepFixupWith:

If target and arguments fields were weakly copied, fix them here. If they were in the tree being copied, fix them up, otherwise point to the originals!!


 

veryDeepInner:

Copy all of my instance variables. Some need to be not copied at all, but shared. Warning!! Every instance variable defined in this class must be handled. We must also implement veryDeepFixupWith:. See DeepCopier class comment.


  events top  
 

addMouseOverHalo


 

delayBetweenFirings


 

delayBetweenFirings:


 

displayCostume:


 

doButtonAction


 

doButtonAction:


 

editButtonsScript:

The user has touched my Scriptor halo-handle. Bring up a Scriptor on the script of the button.


 

mouseDown:


 

mouseEnter:


 

mouseLeave:


 

mouseMove:


 

mouseStillDown:


 

mouseUp:


 

replaceVisibleMorph:


  fileIn/Out top  

  initialization top  
 

adaptToWorld:


 

initialize


  menu top  
 

setActWhen


 

setActionSelector


 

setArguments


 

setLabel


 

setPageSound:


 

setPageVisual:


 

setTarget:


  visual properties top  
 

updateVisualState:

oldColor ifNil: [^self].

self color:
((self containsPoint: evt cursorPoint)
ifTrue: [oldColor mixed: 1/2 with: Color white]
ifFalse: [oldColor])


class methods
  as yet unclassified top  
 

defaultNameStemForInstances

Answer a basis for external names for default instances of the receiver. For classees, the class-name itself is a good one.


 

ellipticalButtonWithText:


 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.


 

test1


 

test2


 

test3