home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / fj / maillis / xwindow / 18959 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.4 KB

  1. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!scslwide!wsgw!wsservra!onoe
  2. From: kevyn@world.std.com (Kevyn Ford)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Sending ClientMessage event with XSendEvent
  5. Message-ID: <1992Dec29.191509.3593@sm.sony.co.jp>
  6. Date: 29 Dec 92 19:15:09 GMT
  7. Sender: onoe@sm.sony.co.jp (Atsushi Onoe)
  8. Distribution: fj
  9. Organization: The World Public Access UNIX, Brookline, MA
  10. Lines: 26
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 29 Dec 92 15:23:04 GMT
  14. Message-Id: <C011EH.83w@world.std.com>
  15. Newsgroups: comp.windows.x
  16. Sender: xpert-request@expo.lcs.mit.edu
  17.  
  18.  
  19. Grumble, grumble...ok, after searching every bloody book on X that I have, I
  20. still cannot find an obvious answer to this question:
  21.  
  22. I want to send an event (ClientMessage) to a window. I've added the event
  23. handler to the window with XtAddEventHandler and I'm sending the event via
  24. XSendEvent.
  25.  
  26. Now, I'd like to send the ClientMessage event because I simply want the window
  27. to update its info (from a database) when I tell it to. Since no other event
  28. seems to fit the bill, ClientMessage was selected. The problem is that I don't
  29. know what event mask to use in the XtAddEventHandler() or XSendEvent() calls -
  30. there isn't a mask for ClientMessage since *every* window should be able to
  31. get this event.
  32.  
  33. So what event mask should I be using? NULL, NoEventMask, or what? Arrrgh!
  34.  
  35. -
  36. Kevyn B. ford
  37. kevyn@kodak.com
  38. kevyn@world.std.com
  39.