How to make Morphs that only appear when the mouse is over them?

Ned Konz ned at bike-nomad.com
Sun Oct 1 07:29:00 UTC 2000


I'm working on my AttachmentMorphs, and am trying to add a mode where
they won't be visible unless the mouse is over them.

But using mouseEnter: and mouseLeave: to control visibility doesn't
work, since the mouseOver logic in the Hand ignores invisible Morphs.

I guess I could use step and query the cursor position every time,
but is there a cleaner way?

(Actually, using step would let me make them visible when the mouse
was merely near them. This might be better).

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com





More information about the Squeak-dev mailing list