[etoys-dev] Event Theatre issue

karl ramberg karlramberg at gmail.com
Tue Nov 15 16:28:30 EST 2011


So I looked at the code in PaintBoxMorph>>eyedropper:action:cursor:evt:
I see that it uses Sensor and just updates the display.
If we do as in ColorPickerMorph and use ActiveWorld doOneCycle instead I
think we can track the events in EventTheatre.

[Sensor anyButtonPressed] whileTrue:
[ pt := Sensor cursorPoint.
"the hand needs to be drawn"
evt hand position: pt.
                +ActiveWorld doOneCycle.
-self world displayWorldSafely.
-delay wait
                ].

But there are some quite weird code issues because both ColorPickerMorph
and PaintBoxMorph do color tracking here.

Karl

On Wed, Nov 2, 2011 at 6:00 PM, Bert Freudenberg <bert at freudenbergs.de>wrote:

>
> On 02.11.2011, at 15:41, Bert Freudenberg wrote:
>
> > Please don't use the bug tracker for discussions (*). That's what the
> mailing list is for :)
> >
> > (*) http://producingoss.com/en/bug-tracker.html
>
> Actually I meant this section:
>
>        http://producingoss.com/en/bug-tracker-usage.html
>
> (though the rest of the book is good too)
>
> - Bert -
>
>
> _______________________________________________
> etoys-dev mailing list
> etoys-dev at squeakland.org
> http://lists.squeakland.org/mailman/listinfo/etoys-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/etoys-dev/attachments/20111115/09896661/attachment.html>


More information about the etoys-dev mailing list