[Newbies] Manipulation of existing objects

Bert Freudenberg bert at freudenbergs.de
Sun Jan 6 21:19:47 UTC 2008

On Jan 6, 2008, at 22:05 , Enno Schwass wrote:

> Hash: SHA1
> Hi
>> | rectangle |
>> rectangle := RectangleMorph new openInWorld.
>> rectangle color: Color white.
>> Now, that the object is created in the World, how do I change its  
>> properties while it exists? How would one change the color of the  
>> RectangleMorph in this example, while it is on screen? Since  
>> everything is an object, and objects can receive messages, I do  
>> believe this to be possible, correct?
> Just send messages to your reference (rectangle).
> You did this in line 2
> rectangle color: Color white.
> You can send other messages like
> rectangle useRoundedCorners.
> If you dont have a reference to your morph, open a workspace,  
> select in its menu
> "create textual references to dropped morphs"
> then drag and drop your morph into your workspace. Use the printed  
> reference to send messages to.

Actually, the usual way is to open an inspector on the object you  
want to work with, and start sending messages to self.

- Bert -

More information about the Beginners mailing list