[HOWTO] get mouseEnter and mouseLeave when btn down
montgomery f. tidwell
mtidwell at practicalmatters.com
Thu Apr 12 20:58:19 UTC 2001
Howdy,
what i want is for the morph to change colors when clicked. if
when i click, i keep the btn down, i want it to revert to its
original color if the mouse leaves its area, and change again
(to the new color) of the mouse is brought back into the morph.
i don't see how mouseStillDown will help, in this case.
newMouseFocus(etc) needs a lot of "baggage" to implement.
>> from Karl
> you must set handlesMouseOverDragging: evt
tried that.
\\//_
Ned Konz wrote:
>
> On Thursday 12 April 2001 12:16, montgomery f. tidwell wrote:
> > Howdy,
> >
> > in a morph (subclassed from RectangleMorph) how can i get it
> > to send mouseEnter and mouseLeave events while the button is
> > still down (after clicking in the morph).
>
> I'm not sure what you want, but:
>
> * mouseStillDown events let you know that the mouse is still down over your
> morph
> * if you capture the mouse focus when your morph gets clicked on (releasing
> it later, of course) your morph'll get all the mouse events while it has the
> focus. See HandMorph>>newMouseFocus: and HandMorph>>releaseMouseFocus:
>
> --
> Ned Konz
> currently: Stanwood, WA
> email: ned at bike-nomad.com
> homepage: http://bike-nomad.com
More information about the Squeak-dev
mailing list
|