home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / x / 16378 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.5 KB

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