How to update the appearance of a morph in mid-method?
Jim Rosenberg
jr at amanue.com
Tue Dec 28 00:39:09 UTC 2004
I have a morph that I want to have "flash" its border color in blue for a
couple of seconds and then restore itself to its prior state.
I know how to change the border color. I know how to achieve a delay.
Everything works if I "do something" to interrupt the method at the point
of the color change. But if I let it run, the display seems to be caching
the state of the display in such a way that I never see the color change.
After the color change I'm trying sending the morph layoutChanged, sending
its owner layoutChanged, even going so far as to try Project current world
restoreDisplay -- nothing works. Sigh.
There has to be a simple way to do this. How do you tell a morph to show
itself "right now" in its current condition -- in mid-method?
-Thanks, Jim
---
Jim Rosenberg http://www.well.com/user/jer/
WELL: jer
Internet: jr at amanue.com
More information about the Squeak-dev
mailing list
|