Re: How to get a button to start painting

"Harness, Kathleen" <kharness-nzINlOoChub2fBVCVOL8/[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.squeakland
Message-ID <B61E9C817826784A8DCE87FEF284B94C1DCED13C@CITESMBX6.ad.uillinois.edu>
Steve,
Also, there is a way to detach the Halo handles and they still function but I can't remember exactly and didn't rediscover it in a hurried 5 minutes of keystroke combo clicks. I bet someone knows and will tell.

It is one of those examples that prove that every-thing-is-an-object.
On that topic, my young students are realizing that they can deconstruct and modify things like the All Scripts button; a gateway moment that leads to other experiments.
Kathleen
________________________________
From: [email protected] [[email protected]] on behalf of Steve Thomas [sthomas1-gQhbkF4bah9Wk0Htik3J/[email protected]]
Sent: Tuesday, May 15, 2012 1:43 PM
To: Harness, Kathleen
Cc: Ricardo Moran; Luis Valente; [email protected]
Subject: Re: [squeakland] How to get a button to start painting

Kathleen,

Nice!  After all this time I am still learning new things about Etoys.

Stephen

On Tue, May 15, 2012 at 1:30 PM, Harness, Kathleen <kharness-nzINlOoChub2fBVCVOL8/[email protected]<mailto:kharness-nzINlOoChub2fBVCVOL8/[email protected]>> wrote:
Hi Luis,
The attached project works with repaint buttons for two objects, more as needed.
Regards,
Kathleen
________________________________
From: [email protected]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] on behalf of Ricardo Moran [[email protected]<mailto:[email protected]>]
Sent: Tuesday, May 15, 2012 9:55 AM
To: Luis Valente
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [squeakland] How to get a button to start painting

Hi,

If I understood your problem correctly, I think you can create an empty drawing and in the button script put something like this:

[ Sketch | copy | do menu item | repaint ]

So now, when you click the button you'll be repainting a copy of the original sketch and you can use it many times.

Cheers,
Richo

On Tue, May 15, 2012 at 11:30 AM, Luis Valente <[email protected]<mailto:[email protected]>> wrote:
Dear friends,
I've a student developping a project to teach some basic math concepts. In her proposal, it's needed a button to start drwaing things using the etoys paintbox. Because it will be needed several times I can't recommend the "do menu item" "repaint".
Anny suggestiont to help solve this problem will be appreciated.

Luis

_______________________________________________
squeakland mailing list
[email protected]<mailto:[email protected]>
http://lists.squeakland.org/mailman/listinfo/squeakland



_______________________________________________
squeakland mailing list
[email protected]<mailto:[email protected]>
http://lists.squeakland.org/mailman/listinfo/squeakland

_______________________________________________
squeakland mailing list
[email protected]
http://lists.squeakland.org/mailman/listinfo/squeakland
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.