Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!rpi!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: hypertext highlighting behavior? Message-ID: <9007140504.AA02620@Larry.McRCIM.McGill.EDU> Date: 14 Jul 90 05:04:28 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 28 > Suppose I've got a text editor and I want the text under the cursor > to highlight as the user moves the cursor within the text editor > window, WITHOUT the user having to first press a mouse button or > keyboard key. > Is this possible? Certainly. There's no technical reason why it can't be done. > Using InputOnly windows, one per highlightable piece of text, would > be one solution [...]. > Another approach would be to somehow get mouse motion events within a > window without a mouse button or keyboard key being pressed. > Whenever I've gotten mouse motion events in the past, they've always > been preceded by a mouse button down event, so I'm unsure if this can > be done. Certainly. Just select for PointerMotionMask or PointerMotionHintMask. You should get MotionNotify events. (Don't try to use motion hints if you're not quite sure what you're doing; make it work the other way first. Motion hint events are much better in many circumstances, but can be confusing at first.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu