[squeakland] How to get a button to start painting

Luis Valente is.valente at gmail.com
Tue May 15 15:04:18 EDT 2012


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 at illinois.edu>

>  Hi Luis,
> The attached project works with repaint buttons for two objects, more as
> needed.
> Regards,
> Kathleen
>  ------------------------------
> *From:* squeakland-bounces at squeakland.org [
> squeakland-bounces at squeakland.org] on behalf of Ricardo Moran [
> richi.moran at gmail.com]
> *Sent:* Tuesday, May 15, 2012 9:55 AM
> *To:* Luis Valente
> *Cc:* squeakland at squeakland.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
www.valente.org.pt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20120515/5b187015/attachment-0001.html>


More information about the squeakland mailing list