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

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!noc.near.net!inmet!reatta!mep
  3. From: mep@reatta.camb.inmet.com (Mark Polhamus)
  4. Subject: ValueChangedCallback & event (Text)
  5. Message-ID: <1992Dec23.162657.19881@inmet.camb.inmet.com>
  6. Summary: event not set on paste
  7. Keywords: Text XmTextVerifyCallbackStruct ValueChangedCallback
  8. Sender: news@inmet.camb.inmet.com
  9. Nntp-Posting-Host: reatta
  10. Organization: Intermetrics Inc.
  11. Date: Wed, 23 Dec 1992 16:26:57 GMT
  12. Lines: 20
  13.  
  14. I need to know when a user has modified a text widget, so I use a
  15. ValueChangedCallback (reason XmCR_VALUE_CHANGED).  If the
  16. XmTextVerifyCallbackStruct's event field is NULL, I assume that the
  17. change did not occur because of the user's action, but because my
  18. program called XmTextSetString().
  19.  
  20. This works in most cases, but I've found that the event field is NULL
  21. when the user pastes into the text widget.
  22.  
  23. Is this a bug?  It happens on both sun4 and HP, Motif 1.1.  I would be
  24. interested in pointers to bug reports - or a specification that agrees
  25. with the current implementation.
  26.  
  27. I really wish this worked - I'll have to write some ugly hacks to work
  28. around it.
  29.  
  30.  
  31. -- Mark Polhamus
  32. -- Intermetrics, Inc.
  33. -- mep@inmet.inmet.com
  34.