Time

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Time

Steve Linduska
Wonder about the ways to handle 'time' in Squeak. 
 
For example, LOGO has commands for wait/waituntil x amount, or 'timing'. 

Steve Linduska
Instructional Technology


Confidentiality Notice:  This email and any attachments are covered by the Electronic Communications Privacy Act, 18 U.S.C.§§2510-2521 and contain privileged and confidential information intended only for the use of the individual or entities named.



_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Time

Bert Freudenberg
Am 06.10.2006 um 18:17 schrieb Steve Linduska:

> Wonder about the ways to handle 'time' in Squeak.
>
> For example, LOGO has commands for wait/waituntil x amount, or  
> 'timing'.

Hi Steve,

do you mean in Etoys or in Smalltalk? In Smalltalk code, you can use  
"(Delay forMilliseconds: x) wait". However, this blocks the current  
process, that is the whole UI in Morphic.

Given your LOGO reference I guess you mean Etoys. Etoys version 1  
(the current, Morphic-based version) does not have this feature,  
because it depends on scripts ticking in parallel (blocking would  
prevent that concurrency). You can, however, set the ticking rate of  
a script to adjust the speed at which actions are performed.

Etoys 2 (based on Tweak) does support waiting, it simply provides a  
"wait x sec" tile. Internally this uses a Delay, but since Tweak is  
multi-threaded (in contrast to Morphic), other scripts will continue  
to operate.

> Confidentiality Notice:  This email and any attachments are covered  
> by the Electronic Communications Privacy Act, 18 U.S.C.§§2510-2521  
> and contain privileged and confidential information intended only  
> for the use of the individual or entities named.

This is a public mailing list with public archives, so this  
disclaimer is nonsense.

- Bert -

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Time

Keith Hodges-2

>  in parallel (blocking would prevent that concurrency). You can,
> however, set the ticking rate of a script to adjust the speed at which
> actions are performed.
>

Can you ?

Where is all this information?

Keith




               
___________________________________________________________
All New Yahoo! Mail – Tired of Vi@gr@! come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Time

Bert Freudenberg
Am 07.10.2006 um 14:47 schrieb keith hodges:

>>  in parallel (blocking would prevent that concurrency). You can,  
>> however, set the ticking rate of a script to adjust the speed at  
>> which actions are performed.
>
> Can you ?

Hold down on the ticker clock icon.

> Where is all this information?

Most UI elements in etoys have bubble help if you hover over them,  
including that ticker icon.

Also, it probably is in the Powerful Ideas book. This is a must-read  
when you start with etoys. It might also be mentioned on the  
Squeakland website, which is another required reading place.

However, most information still is passed on orally, in hands-on  
workshops, at squeak fest etc. We as a community are in dire need of  
people documenting all the cool stuff that is in Etoys and Squeak,  
and making it available at a central place for easy finding.

There is even a lot written already, but hard to find. I just googled  
for "squeak ticker adjust" and found a PDF created by Lucy Qiu of Don  
Mills Middle School that describes this:

"If you want to adjust the speed of your animation, click on the  
green ticker but don’t let go of the mouse until the green ticker  
turns gray. A menu will appear after that, you can select the speed  
you want from the menu, 1 is the slowest you can get."

Of course, by typing in a fraction you can get even slower - this is  
the problem with beginner's tutorials, in that you do not want to  
mention all available options right up front. So many of the more  
useful tips are never written down.

Anyway, collecting this stuff in a comprehensive manner would be very  
useful.

- Bert -

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Time

keith1y
Next Question,

why when I have a component that is ticking does its pickup behaviour
change. Picking it up creates a copy of the component rather than moving it?

thanks in advance

 keith

Bert Freudenberg wrote:
> Am 07.10.2006 um 14:47 schrieb keith hodges:
>
>>>  in parallel (blocking would prevent that concurrency). You can,
>>> however, set the ticking rate of a script to adjust the speed at
>>> which actions are
>>> performed.s.squeakfoundation.org/mailman/listinfo/beginners
>
>


               
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Time

Keith Hodges-2
In reply to this post by Bert Freudenberg
Next Question,

why when I have a component that is ticking does its pickup behaviour
change. Picking it up creates a copy of the component rather than moving it?

thanks in advance

keith

Bert Freudenberg wrote:
> Am 07.10.2006 um 14:47 schrieb keith hodges:
>
>>>  in parallel (blocking would prevent that concurrency). You can,
>>> however, set the ticking rate of a script to adjust the speed at
>>> which actions are
>>> performed.s.squeakfoundation.org/mailman/listinfo/beginners
>
>



               
___________________________________________________________
Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Morphic Layout Managers

Kenneth Payne
In reply to this post by Bert Freudenberg
Am I right in thinking there is way to get a sub-morph to automatically resize
as its owner morph resizes?

I've experimented with TableLayout and it seems to work the opposite way. You
can get a morph to "shrink-wrap" around its components but you cannot get
submorphs to expand or shrink automatically to fill a table cell.

You'd think that using "space fill" on the child layout menu might do
something like this - but it doesn't.

As for Proportional Layout - I can't even understand what it's supposed to do.
Nothing as far as I can tell.

I was hoping that TableLayout might work like the layout managers you get in
tk, Java, Qt, wxWindows etc. But it seems much more primitive.

Am I missing something? Or is this a basic deficiency that explains why many
of the example apps that come with squeak - games, editors etc either do not
resize or become an unusable mess if you resize them?

- Ken




 



 

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Time

Bert Freudenberg
In reply to this post by Keith Hodges-2
Am 08.10.2006 um 03:26 schrieb keith hodges:

> why when I have a component that is ticking does its pickup behaviour
> change. Picking it up creates a copy of the component rather than  
> moving it?

That must be something else. What exactly are you doing?

- Bert -

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Morphic Layout Managers

Bert Freudenberg
In reply to this post by Kenneth Payne

Am 08.10.2006 um 13:28 schrieb Kenneth Payne:

> Am I right in thinking there is way to get a sub-morph to  
> automatically resize
> as its owner morph resizes?
>
> I've experimented with TableLayout and it seems to work the  
> opposite way. You
> can get a morph to "shrink-wrap" around its components but you  
> cannot get
> submorphs to expand or shrink automatically to fill a table cell.
>
> You'd think that using "space fill" on the child layout menu might do
> something like this - but it doesn't.

This should actually work. I think you must not set the container to  
shrinkWrap.

> As for Proportional Layout - I can't even understand what it's  
> supposed to do.
> Nothing as far as I can tell.

Right, you must give it a layout frame. Perhaps this helps:

        http://minnow.cc.gatech.edu/squeak/2141

- Bert -

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Morphic Layout Managers

Kenneth Payne
Bert-

Thanks for your help.

> This should actually work. I think you must not set the container to
> shrinkWrap.
>
I've been experimenting with layout by embedding morphs and using the morph
menu to change layout etc.

I think I've tried every combination of layouts and child layouts but I've
never got a sub-morph fill a cell or to change size with its container. I
must be doing something wrong.

>
> Right, you must give it a layout frame. Perhaps this helps:
>
> http://minnow.cc.gatech.edu/squeak/2141
>

I've looked at the example. I'll do some experimenting with it this week.

Thanks again for your help.

- Ken



On Sunday 08 October 2006 14:48, Bert Freudenberg wrote:

> Am 08.10.2006 um 13:28 schrieb Kenneth Payne:
> > Am I right in thinking there is way to get a sub-morph to
> > automatically resize
> > as its owner morph resizes?
> >
> > I've experimented with TableLayout and it seems to work the
> > opposite way. You
> > can get a morph to "shrink-wrap" around its components but you
> > cannot get
> > submorphs to expand or shrink automatically to fill a table cell.
> >
> > You'd think that using "space fill" on the child layout menu might do
> > something like this - but it doesn't.
>
> This should actually work. I think you must not set the container to
> shrinkWrap.
>
> > As for Proportional Layout - I can't even understand what it's
> > supposed to do.
> > Nothing as far as I can tell.
>
> Right, you must give it a layout frame. Perhaps this helps:
>
> http://minnow.cc.gatech.edu/squeak/2141
>
> - Bert -
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Morphic Layout Managers

tblanchard
There is enough horsepower in the morphic layout controls to do most  
common layouts.

However, most people find the terminology bizarre and it is not at  
all straightforward to tap that power.

When you figure it out, it would be really nice if you would write up  
what you learn.

-Todd Blanchard

On Oct 8, 2006, at 11:08 AM, Kenneth Payne wrote:

> Bert-
>
> Thanks for your help.
>
>> This should actually work. I think you must not set the container to
>> shrinkWrap.
>>
> I've been experimenting with layout by embedding morphs and using  
> the morph
> menu to change layout etc.
>
> I think I've tried every combination of layouts and child layouts  
> but I've
> never got a sub-morph fill a cell or to change size with its  
> container. I
> must be doing something wrong.
>
>>
>> Right, you must give it a layout frame. Perhaps this helps:
>>
>> http://minnow.cc.gatech.edu/squeak/2141
>>
>
> I've looked at the example. I'll do some experimenting with it this  
> week.
>
> Thanks again for your help.
>
> - Ken
>
>
>
> On Sunday 08 October 2006 14:48, Bert Freudenberg wrote:
>> Am 08.10.2006 um 13:28 schrieb Kenneth Payne:
>>> Am I right in thinking there is way to get a sub-morph to
>>> automatically resize
>>> as its owner morph resizes?
>>>
>>> I've experimented with TableLayout and it seems to work the
>>> opposite way. You
>>> can get a morph to "shrink-wrap" around its components but you
>>> cannot get
>>> submorphs to expand or shrink automatically to fill a table cell.
>>>
>>> You'd think that using "space fill" on the child layout menu  
>>> might do
>>> something like this - but it doesn't.
>>
>> This should actually work. I think you must not set the container to
>> shrinkWrap.
>>
>>> As for Proportional Layout - I can't even understand what it's
>>> supposed to do.
>>> Nothing as far as I can tell.
>>
>> Right, you must give it a layout frame. Perhaps this helps:
>>
>> http://minnow.cc.gatech.edu/squeak/2141
>>
>> - Bert -
>>
>> _______________________________________________
>> Beginners mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Morphic Layout Managers

Kenneth Payne
Todd -

Nothing is more irritating than the lack of documentation for squeak.

If I do ever sort out how to layout sub-morphs, I will certainly write it up
for others and in words of one syllable so people like me can understand it.

By the way, that proportional layout code that Bert pointed out seems to do
what I want. (Thanks again, Bert). Now I just have to understand it.

- Ken  


On Monday 09 October 2006 02:57, Todd Blanchard wrote:

> There is enough horsepower in the morphic layout controls to do most
> common layouts.
>
> However, most people find the terminology bizarre and it is not at
> all straightforward to tap that power.
>
> When you figure it out, it would be really nice if you would write up
> what you learn.
>
> -Todd Blanchard
>
> On Oct 8, 2006, at 11:08 AM, Kenneth Payne wrote:
> > Bert-
> >
> > Thanks for your help.
> >
> >> This should actually work. I think you must not set the container to
> >> shrinkWrap.
> >
> > I've been experimenting with layout by embedding morphs and using
> > the morph
> > menu to change layout etc.
> >
> > I think I've tried every combination of layouts and child layouts
> > but I've
> > never got a sub-morph fill a cell or to change size with its
> > container. I
> > must be doing something wrong.
> >
> >> Right, you must give it a layout frame. Perhaps this helps:
> >>
> >> http://minnow.cc.gatech.edu/squeak/2141
> >
> > I've looked at the example. I'll do some experimenting with it this
> > week.
> >
> > Thanks again for your help.
> >
> > - Ken
> >
> > On Sunday 08 October 2006 14:48, Bert Freudenberg wrote:
> >> Am 08.10.2006 um 13:28 schrieb Kenneth Payne:
> >>> Am I right in thinking there is way to get a sub-morph to
> >>> automatically resize
> >>> as its owner morph resizes?
> >>>
> >>> I've experimented with TableLayout and it seems to work the
> >>> opposite way. You
> >>> can get a morph to "shrink-wrap" around its components but you
> >>> cannot get
> >>> submorphs to expand or shrink automatically to fill a table cell.
> >>>
> >>> You'd think that using "space fill" on the child layout menu
> >>> might do
> >>> something like this - but it doesn't.
> >>
> >> This should actually work. I think you must not set the container to
> >> shrinkWrap.
> >>
> >>> As for Proportional Layout - I can't even understand what it's
> >>> supposed to do.
> >>> Nothing as far as I can tell.
> >>
> >> Right, you must give it a layout frame. Perhaps this helps:
> >>
> >> http://minnow.cc.gatech.edu/squeak/2141
> >>
> >> - Bert -
> >>
> >> _______________________________________________
> >> Beginners mailing list
> >> [hidden email]
> >> http://lists.squeakfoundation.org/mailman/listinfo/beginners
> >
> > _______________________________________________
> > Beginners mailing list
> > [hidden email]
> > http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Morphic Layout Managers

Bert Freudenberg
Am 09.10.2006 um 20:03 schrieb Kenneth Payne:

> By the way, that proportional layout code that Bert pointed out  
> seems to do
> what I want. (Thanks again, Bert). Now I just have to understand it.

Well, it's the traditional Smalltalk layout, also known as  
"fractional layout" in other environments. I guess it goes way back.

Here's a nice usage pattern:

        http://www.cincomsmalltalk.com/userblogs/vbykov/blogView?
entry=3266234939
        http://tinyurl.com/me86d

- Bert -
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners