Thread View: comp.sys.next.programmer
1 messages
1 total messages
Started by Michael Haker
Wed, 30 Sep 1992 01:20
mouseMoved events?
Author: Michael Haker
Date: Wed, 30 Sep 1992 01:20
Date: Wed, 30 Sep 1992 01:20
30 lines
1290 bytes
1290 bytes
Hi
I'm trying to get my app to generate mouseMoved events while the mouse is
in a particular view (bordered by mouseEntered and mouseExited events).
The documentation describes what needed to generate the enter/exit events
and that's working fine, but no mouseMoved events. I am assuming that a
mouseMoved event is generated anytime a mouse is moved when neither mouse
button is pressed. Here is the essence of the code that is in a view
subclass :
- mouseMoved:(NXEvent *)e
{ /* important stuff */
return self;
}
- mouseEntered:(NXEvent *)e
{
moveMask = [window addToEventMask:NX_MOUSEMOVEDMASK];
/* setup */
return self;
}
- mouseExited:(NXEvent *)e
{
[window setEventMask:moveMask];
/* setdown */
return self;
}
any help would be greatly appreciated. Please e-mail responses.
Mike Haker
haker@whitewater.chem.wisc.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads