[squeak-dev] Morph flash (was The Inbox: Morphic-cmm.728.mcz)

karl ramberg karlramberg at gmail.com
Tue Jul 1 08:31:10 UTC 2014


That would be this:

flash
"Flash me"
1 to: 2 do:[:i|
self color: Color black.
self world doOneCycleNow.
(Delay forMilliseconds: 50) wait.
self color: Color white.
self world doOneCycleNow.
(Delay forMilliseconds: 50) wait.
].

Karl


On Mon, Jun 30, 2014 at 11:04 PM, Bert Freudenberg <bert at freudenbergs.de>
wrote:

>
> On 30.06.2014, at 21:54, tim Rowledge <tim at rowledge.org> wrote:
>
> >
> > On 30-06-2014, at 12:52 PM, Chris Muller <asqueaker at gmail.com> wrote:
> >
> >>
> >> We probably need to decide whether we want #flash to be a debugging
> tool or something any morph should be able to do in a way that properly
> integrates with the Morphic framework...
> >>
> >> It seems we want it fairly often-enough as a IDE tool, I wouldn't be
> opposed to a small delay...
> >>
> >>
> > Seems pretty obvious to me - add a #slowFlashAlert method and leave the
> plain flash alone.
> >
> > tim
>
> UserDialogBoxMorph has a special flash method that is nicely visible. Try
> this and click outside:
>
>         self confirm: 'foo'
>
> For a general (non-modal) version it would be nicer to use alarms instead
> of delays, but I like the "double blink" effect.
>
> - Bert -
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140701/07ba5915/attachment.htm


More information about the Squeak-dev mailing list