delay (Transcript vs Morphic)
Gary Chambers
gazzaguru at btinternet.com
Tue Dec 27 09:51:17 UTC 2005
Hi.
Transcript show: 'something' implicitly runs a world cycle to update the ui,
though in a non-obvious manner!
Try the following:
y := 100.
offset := 20.
3 timesRepeat: [
t := TextMorph new openInWorld.
t contents: 'hi'.
t position: 100 at y.
World doOneCycleNow. "update the ui"
y := y + offset.
(Delay forSeconds: 1) wait.
]
Hope this helps.
More information about the Squeak-dev
mailing list
|