Article View: comp.windows.interviews
Article #745need help with input handling
From: Mark Roseman
Date: Mon, 05 Oct 1992 21:48
Date: Mon, 05 Oct 1992 21:48
35 lines
1929 bytes
1929 bytes
Here's the situation. I've got an ActiveHandler subclass called Overlay,
which is designed to sit on top of other ActiveHandlers (i.e. an ActiveHandler
inside an ActiveHandler). I want to have the following behavior:
* drawing proceeds from the innermost glyph to the outermost (this is the
default behavior)
* events (mouse, keyboard, etc.) get sent to the outermost glyph (the
overlay), which can then pass events to the inner glyphs (knowing they
are ActiveHandlers)
What I've done is redefine pick in the overlay so that for mouse moves
the hit target is the overlay, and it doesn't try to traverse the subglyphs.
The overlay behavior when it gets events is to handle them (e.g. in the
overlay::press routine) and then call press on the body (inside ActiveHandler).
This seems to mostly work, but enter and leave events get screwed up (i.e. I
usually don't receive them). I suspect this has something to do with the
inner glyphs grabbing the events. Is there any way to make InterViews ignore
the grabbers and just handle things as if they weren't there?
Any help or suggestions are definitely appreciated!
Mark
--
==============================================================================
Mark Roseman --- Groupware'R'Us
Dept. of Computer Science, University of Calgary, Calgary, Alta. T2N 1N4
(403) 220-7691 roseman@cpsc.ucalgary.ca Fax: (403) 284-4707
Technical Details
Message-ID:
<Bvo4L5.GDG@cpsc.ucalgary.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!caen!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cpsc.ucalgary.ca!newsShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!caen!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!acs.ucalgary.ca!cpsc.ucalgary.ca!news From: roseman@cpsc.ucalgary.ca (Mark Roseman) Subject: need help with input handling Message-ID: <Bvo4L5.GDG@cpsc.ucalgary.ca> Sender: news@cpsc.ucalgary.ca (News Manager) Organization: U. of Calgary Computer Science Date: Mon, 5 Oct 1992 21:48:39 GMT Lines: 35