Is there a way to tell when the mouse is outside any VW windows? I ask because we don't always get a FrameExited announcement... Stevenson, Dave (contr) <[hidden email]>
_______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Grab the mouse. Doing so means all mouse events go to you until you
ungrab it. Be sure to ungrab it. (see #grabMouseEventFor: and #ungrabMouseEventFor:) Cheers, Michael Stevenson, Dave (contr) wrote: > > Is there a way to tell when the mouse is outside any VW windows? > > I ask because we don't always get a FrameExited announcement... > > > Stevenson, Dave (contr) <[hidden email]> > 972-946-4890 > > ------------------------------------------------------------------------ > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Perfect, thanks. Too bad the simplest solutions are always the last ones
you think of... Dave Michael Lucas-Smith wrote: > Grab the mouse. Doing so means all mouse events go to you until you > ungrab it. Be sure to ungrab it. > > (see #grabMouseEventFor: and #ungrabMouseEventFor:) > > Cheers, > Michael > > Stevenson, Dave (contr) wrote: > >> Is there a way to tell when the mouse is outside any VW windows? >> >> I ask because we don't always get a FrameExited announcement... >> >> >> Stevenson, Dave (contr) <[hidden email]> >> 972-946-4890 >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc >> >> > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Grabbing, combined with widening the empty space between my HotDraw
drawing and the edge of its containing window to 10 pixels, gives me better feedback when moving across or clicking on any VW window, and seems to take care of most of the problem. However, grabbing the mouse still doesn't give me events outside any VW window (like moving across or clicking on the desktop), at least not in VW 7.6 on Win XP. So while a click on some VW widget outside my drawing will cancel the drawing's grab, clicking on a non-VW surface does not. Bummer. >Stevenson, Dave (contr) <[hidden email]> 972-946-4890 -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Dave Stevenson Sent: Monday, February 09, 2009 7:57 PM To: Michael Lucas-Smith Cc: VWNC Subject: Re: [vwnc] mouse outside any VW windows? Perfect, thanks. Too bad the simplest solutions are always the last ones you think of... Dave Michael Lucas-Smith wrote: > Grab the mouse. Doing so means all mouse events go to you until you > ungrab it. Be sure to ungrab it. > > (see #grabMouseEventFor: and #ungrabMouseEventFor:) > > Cheers, > Michael > > Stevenson, Dave (contr) wrote: > >> Is there a way to tell when the mouse is outside any VW windows? >> >> I ask because we don't always get a FrameExited announcement... >> >> >> Stevenson, Dave (contr) <[hidden email]> 972-946-4890 >> >> --------------------------------------------------------------------- >> --- >> >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc >> >> > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |