Sending the same message to three StringMorphs

Philippe de Rochambeau pr1 at club-internet.fr
Tue Apr 28 16:57:40 UTC 1998


Let us say that you would like a ButtonMorph to send a particular command to
three different StringMorphs. This command should tell each StringMorph to
replace its contents by a particular value (its name, location, size, the
value of an instance variable, etc.) How would go about implementing this
since Morphs can only have one target?

Another question, how would you go about telling a TextMorph to aks an
adjacent StringMorph to display its contents (the TextMorph's) whenever the
user pressed a ButtonMorph. I have tried creating an instance variable called
StringMorph in the TextMorph, but to no avail.

Any help on this matter would be much appreciated.

Philippe de Rochambeau





More information about the Squeak-dev mailing list