How to update the appearance of a morph in mid-method?
Hans-Martin Mosner
hmm at heeg.de
Tue Dec 28 16:52:42 UTC 2004
A more elegant solution would be to use the alarm handling methods:
flashBorder
| oldBorderColor |
oldBorderColor := self borderColor.
self borderColor: Color blue.
self addAlarm: #borderColor: with: oldBorderColor after: 3000.
"reset the border color after 3 seconds"
You only have to be careful not to call this method while the border
color is set to blue - otherwise the change will be permanent...
Cheers,
Hans-Martin
More information about the Squeak-dev
mailing list
|