[Newbies] Manipulation of existing objects

David Zmick dz0004455 at gmail.com
Sun Jan 6 23:16:18 UTC 2008


ya, an inspector works, you can also use the halo to change some things in
morphic

On Jan 6, 2008 3:19 PM, Bert Freudenberg <bert at freudenbergs.de> wrote:

> On Jan 6, 2008, at 22:05 , Enno Schwass wrote:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > 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 -
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080106/e6e61fbf/attachment.htm


More information about the Beginners mailing list