home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / x / 19045 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.3 KB

  1. Xref: sparky comp.windows.x:19045 comp.windows.x.intrinsics:524
  2. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!agate!doc.ic.ac.uk!rhbnc!csqx.cs.rhbnc.ac.uk!adrian
  3. From: adrian@csqx.cs.rhbnc.ac.uk (A Johnstone)
  4. Newsgroups: comp.window.x.motif,comp.windows.x,comp.windows.x.intrinsics
  5. Subject: HELP...Mouse events in PushButtonGadget
  6. Message-ID: <1992Nov12.143358.19866@csqx.cs.rhbnc.ac.uk>
  7. Date: 12 Nov 92 14:33:58 GMT
  8. Sender: news@csqx.cs.rhbnc.ac.uk (USENET News System)
  9. Reply-To: adrian@csqx.cs.rhbnc.ac.uk (A Johnstone)
  10. Organization: RHBNC
  11. Lines: 20
  12. Nntp-Posting-Host: csqx.cs.rhbnc.ac.uk
  13.  
  14.  
  15. I need to be able to activate PushButtonGagdgets with all three mouse buttons
  16. rather than just the Select button.
  17.  
  18. Normally I would use XtAddEventHandler with a ButtonPress mask to trap mouse
  19. presses in the push button, however as PushButtonGadgets aren't windows in
  20. their own right, this doesn't work (process killed on unaligned access).
  21.  
  22. Setting up translations on the buttons doesn't work either for the same 
  23. reason.
  24.  
  25. If it is of any help, the Gadgets are all children of a RowColumn widget 
  26. created with XmCreateRowColumn.
  27.  
  28. They DO need to be Gadgets rather than ordinary Push Buttons as I have 400 of
  29. them up at the same time!
  30.  
  31. Any help would be greatly appreciated. Thanks.
  32.  
  33. Please e-mail to jamesd@cs.rhbnc.ac.uk
  34.