[Etoys] Setting slider targets.

Jerome Peace peace_the_dreamer at yahoo.com
Thu Jan 8 22:02:54 EST 2009


[Etoys] Setting slider targets.


***
>Yoshiki Ohshima yoshiki at vpri.org 
>Thu Jan 8 07:54:37 EST 2009 
>
>
>At Mon, 29 Dec 2008 18:11:53 -0800 (PST),
>Jerome Peace wrote:
>> 
>> Setting slider targets.
>> 
>> Hi all,
>> 
>> I am glad to see that you included the star repair in
>> etoys 3.0 and now 4.0. My heart feels glad that children
>> will be able to play with them.
>> 
>> So here is the next repair still needing doing:
>> 
>> Right now you can get a slider from supplies.
>> You can set its action.
>> You can set its maximum and minimum extent.
>> You can give it arguments.
>> The one thing you cannot do is set its target.
>> 
>> The bug has been found and fixed in 3.9 and 3.10.
>> A while back I made a changeset to fix target setting for 3.8 and etoys.'
>> It's on mantis.
>> 
>> http://bugs.squeak.org/view.php?id=6521
>> 0006521: Target setting doesn't work for buttons and sliders
>> 
>> The only way to find out if it still works is to check it out.
>> If you have problems with it let me know and I will help.
>> 
>> Targeting makes it possible to design a slider the way you like it.
>> Duplicate it. Then use the duplicate for a totally different object.
>> This is very handy for rapid development.
>
>  Thanks.  I would vote for the inclusion of this into the Etoys V4
>image (though it touches more methods than I imagined).

Ha. It was a viral bug. I literally found the same code snippets in 
slider, button code and movie player morph. People had copied the bug
verbatim to all those places. 
Copied also was logic in each menu to hide the target setting item under certain circumstances. This was clearly writen to work around the bug.
The naive way of dealing with the problem hid the target setting item most of the time.

I first fixed the bug just for sliders. As time passed I added the other places 
as I found them. 

And by the time I got around to the Etoys version of the repair I had quite a list.

The history is there on mantis several different bug reports. 
Look for them under Squeak or AllProjects.
Search for sliders or targeting. 
Make sure to look in the closed reports. 
I probably started most of them. 
Looking for reporter 'wiz' can help narrow things down if necessary.


>
>  I haven't tried it with Nebraska, but the targetOffset/targetPoint
>change works with it, right?

Good question. I never stumbled across Nebraska in my fixing. 
If its broken now the methods used for the fix could be applied.

I spent lots of time with the problem and got to know it pretty well.


Yours in curiosity and service, --Jerome Peace




      


More information about the Etoys mailing list