Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: clicking mouse Message-ID: <9103112143.AA17920@lightning.McRCIM.McGill.EDU> Date: 11 Mar 91 21:43:32 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 11 > What is the best way to detect a click of the mouse? Select for ButtonPress events on your window. If by "click" you mean a press and a release, ask for ButtonRelease as well. If it's important that the pointer not move (or not move much) between the press and the release, ask for MotionNotify as well, and check the coordinates. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu