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 7:17 pm UTC on 25 August 2016
Use the text below as a start for the StringMorph class comment

StringMorph is a subclass of Morph. It has the instance variables:

It further has 20 subclasses (Squeak 3.3a-4744).

If you shift-click on a StringMorph you can edit it's string.

This is accomplished the following way:

class StringMorph overrides the message #mouseDown: and then tests

(evt shiftPressed and: [self wantsKeyboardFocusOnShiftClick]) and if it is true it launches a StringMorph.

A StringMorph may as well be used like a SimpleButtonMorph to do an action when clicked. Use the menu 'extras' / 'add mouseUpAction'.

The following propery will be defined:
aStringMorph valueOfProperty: #mouseUpCodeToRun

see Morph mouse up action (Smalltalk expression)

You can add custom menu entries to any Morph, see Morph menus.