Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
IconicButton
Last updated at 3:12 pm UTC on 30 March 2017
 SimpleButtonMorph subclass: #IconicButton

How to create an IconicButton:

i := IconicButton new

Send the following message to i with the appropriate parameter objects:

initializeToShow: aMorph withLabel: aLabel andSend: aSelector to: aReceiver

The Form of the aMorph is used to as the icon of the IconicButton.

Add the button to the World:

i openInWorld

See also Recipe: How to use an IconicButton in Morphic