Luis Valente | 15 May 2012 16:30
Picon
Gravatar

How to get a button to start painting

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
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
Ricardo Moran | 15 May 2012 16:55
Picon
Gravatar

Re: 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 <is.valente-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
squeakland-tgy29QT0A092KDkfy0k2sw@public.gmane.org
http://lists.squeakland.org/mailman/listinfo/squeakland


_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
Harness, Kathleen | 15 May 2012 19:30
Favicon

Re: How to get a button to start painting

Hi Luis,
The attached project works with repaint buttons for two objects, more as needed.
Regards,
Kathleen
From: squeakland-bounces-tgy29QT0A092KDkfy0k2sw@public.gmane.org [squeakland-bounces-tgy29QT0A092KDkfy0k2sw@public.gmane.org] on behalf of Ricardo Moran [richi.moran <at> gmail.com]
Sent: Tuesday, May 15, 2012 9:55 AM
To: Luis Valente
Cc: squeakland-tgy29QT0A092KDkfy0k2sw@public.gmane.org
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 <is.valente <at> gmail.com> 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
squeakland <at> squeakland.org
http://lists.squeakland.org/mailman/listinfo/squeakland


Attachment (khrepaint.001.pr): application/octet-stream, 29 KiB
_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
Steve Thomas | 15 May 2012 20:43

Re: 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/A@public.gmane.org> wrote:
Hi Luis,
The attached project works with repaint buttons for two objects, more as needed.
Regards,
Kathleen
From: squeakland-bounces-tgy29QT0A092KDkfy0k2sw@public.gmane.org [squeakland-bounces-tgy29QT0A092KDkfy0k2sw@public.gmane.org] on behalf of Ricardo Moran [richi.moran-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Tuesday, May 15, 2012 9:55 AM
To: Luis Valente
Cc: squeakland-tgy29QT0A092KDkfy0k2sw@public.gmane.org
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 <is.valente <at> gmail.com> 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
squeakland <at> squeakland.org
http://lists.squeakland.org/mailman/listinfo/squeakland



_______________________________________________
squeakland mailing list
squeakland-tgy29QT0A092KDkfy0k2sw@public.gmane.org
http://lists.squeakland.org/mailman/listinfo/squeakland


_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
Harness, Kathleen | 15 May 2012 21:14
Favicon

Re: How to get a button to start painting

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: stevesargon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [stevesargon <at> gmail.com] on behalf of Steve Thomas [sthomas1-gQhbkF4bah9Wk0Htik3J/w@public.gmane.org]
Sent: Tuesday, May 15, 2012 1:43 PM
To: Harness, Kathleen
Cc: Ricardo Moran; Luis Valente; squeakland-tgy29QT0A092KDkfy0k2sw@public.gmane.org
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 <at> illinois.edu> wrote:
Hi Luis,
The attached project works with repaint buttons for two objects, more as needed.
Regards,
Kathleen
From: squeakland-bounces-tgy29QT0A092KDkfy0k2sw@public.gmane.org [squeakland-bounces-tgy29QT0A092KDkfy0k2sw@public.gmane.org] on behalf of Ricardo Moran [richi.moran-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Tuesday, May 15, 2012 9:55 AM
To: Luis Valente
Cc: squeakland-tgy29QT0A092KDkfy0k2sw@public.gmane.org
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 <is.valente <at> gmail.com> 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
squeakland <at> squeakland.org
http://lists.squeakland.org/mailman/listinfo/squeakland



_______________________________________________
squeakland mailing list
squeakland <at> squeakland.org
http://lists.squeakland.org/mailman/listinfo/squeakland


_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
Luis Valente | 15 May 2012 21:04
Picon
Gravatar

Re: How to get a button to start painting

Hi Kathleen and Richo,

Many thanks for your help. I solved this problem with the hint of Richo.
I made a 1 pixel paint and use it as source. After that I copy and repaint this copy. It's fine!
Thanks again

Luis
2012/5/15 Harness, Kathleen <kharness-nzINlOoChub2fBVCVOL8/A@public.gmane.org>
Hi Luis,
The attached project works with repaint buttons for two objects, more as needed.
Regards,
Kathleen
From: squeakland-bounces-tgy29QT0A092KDkfy0k2sw@public.gmane.org [squeakland-bounces-tgy29QT0A092KDkfy0k2sw@public.gmane.org] on behalf of Ricardo Moran [richi.moran-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Tuesday, May 15, 2012 9:55 AM
To: Luis Valente
Cc: squeakland-tgy29QT0A092KDkfy0k2sw@public.gmane.org
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 <is.valente <at> gmail.com> 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
squeakland <at> squeakland.org
http://lists.squeakland.org/mailman/listinfo/squeakland





--
All the best,
Luís Valente
_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland

Gmane