home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / 20601 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.1 KB  |  34 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!world!kevyn
  3. From: kevyn@world.std.com (Kevyn Ford)
  4. Subject: Sending ClientMessage event with XSendEvent
  5. Message-ID: <C011EH.83w@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. Distribution: comp.windows.x
  8. Date: Tue, 29 Dec 1992 15:23:04 GMT
  9. Lines: 23
  10.  
  11.  
  12. Grumble, grumble...ok, after searching every bloody book on X that I have, I
  13. still cannot find an obvious answer to this question:
  14.  
  15. I want to send an event (ClientMessage) to a window. I've added the event
  16. handler to the window with XtAddEventHandler and I'm sending the event via
  17. XSendEvent.
  18.  
  19. Now, I'd like to send the ClientMessage event because I simply want the window
  20. to update its info (from a database) when I tell it to. Since no other event
  21. seems to fit the bill, ClientMessage was selected. The problem is that I don't
  22. know what event mask to use in the XtAddEventHandler() or XSendEvent() calls -
  23. there isn't a mask for ClientMessage since *every* window should be able to
  24. get this event.
  25.  
  26. So what event mask should I be using? NULL, NoEventMask, or what? Arrrgh!
  27.  
  28. -
  29. Kevyn B. ford
  30. kevyn@kodak.com
  31. kevyn@world.std.com
  32.  
  33.  
  34.