home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x:16378 comp.windows.x.motif:6070
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!att!fang!gator!inland!pa621a.inland.com!solomon
- Newsgroups: comp.windows.x,comp.windows.x.motif
- Subject: Help with X(t)GrabPointer()...
- Message-ID: <1992Sep8.135732.1@pa621a.inland.com>
- From: solomon@pa621a.inland.com (Paul J. Solomon)
- Date: 8 Sep 92 13:57:32 CDT
- Organization: Inland Steel Company, East Chicago, IN
- Nntp-Posting-Host: pa621a
- Nntp-Posting-User: solomon
- Lines: 21
-
- I need to be able to grab the mouse pointer, click on some element in
- my application, and return the widget underneath the cursor. I am
- currently using XGrabPointer() and a loop with XCheckTypedEvent() to
- pull out the next ButtonPress.
-
- I seem to be having problems with the pushbutton itself: after the
- XGrabPointer is called, whenever I then choose a pushbutton widget, either
- the button's callback gets called, or the button just stays highlighted
- after being clicked on (depending on how I process the events).
-
- Does anyone know of a way to *really* ignore pushbutton widgets during
- this grab: all I'm interested in is which widget I click on...
-
-
- -paul.
- --
- ----------------------------------------------------------------------
- | Paul J. Solomon | "Consequences, Schmonsequences... |
- | solomon@pa881a.inland.com | as long as I'm RICH!!!" |
- | Inland Steel Co. | -Daffy Duck |
- ----------------------------------------------------------------------
-