Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
SimpleSwitchMorph
Last updated at 11:29 am UTC on 12 September 2016
Represents a switch that can be either on or off. The state changes in response to a mouse click.

When clicked, #actionSelector is sent to the target, just like in SimpleButtonMorph.



Example of usage


In the SameGame example it is used for the Help button to show or hide a PluggableTextMorph instance.

The class SameGameTile is a subclass of SimpleSwitchMorph.