links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Last updated at 3:24 pm UTC on 20 April 2018
Subclass of BorderedMorph. RectangleMorph does not add much functionality but it is the class which you should preferrably instantiate. For example:
RectangleMorph new openInWorld
Test in a new Squeak image
 BorderedMorph allInstances size
 RectangleMorph allInstances size

Checking different border types.
 RectangleMorph new borderColor: #raised; borderWidth: 10; openInWorld
 RectangleMorph new borderColor: Color red; borderWidth: 10; openInWorld 

See also

Method for making Morphs
How to lay out submorphs - example 1