home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / motif / 8816 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.4 KB

  1. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!agate!ucbvax!aragorn.CSELT.STET.IT!gnpaolo
  2. From: gnpaolo@aragorn.CSELT.STET.IT (Gian Paolo Costantino - CSELT - Italy)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Re: Text widgets - no stroke "delay"
  5. Message-ID: <8DD30F20939F207536@EI3500.CSELT.STET.IT>
  6. Date: 25 Jan 93 10:34:50 GMT
  7. References: <9301222210.AA04057@lilbit.tdtech.com>
  8. Sender: usenet@ucbvax.BERKELEY.EDU
  9. Distribution: inet
  10. Organization: The Internet
  11. Lines: 17
  12.  
  13. Maybe my answer is a bit later, but I received the mail only today.
  14.  
  15. Prakash Baskaran wrote:
  16.  
  17. >I used to following technique to solve the problem.  It works allright
  18. >-execpt- that I get the answer one "stroke" later.  I am using
  19. >XmNmotionVerifyCallback to return the x, y position of my cursor. And
  20.  
  21. The solution for the "delay" should be by using XmNvalueChangedCallback
  22. instead of the XmNmotionVerifyCallback: the latter is called before the
  23. insertion or deletion of text, while the former is called after, so the
  24. content of the XmText in this case is the current actual string.
  25. ************************************************************************
  26. *               Gian Paolo Costantino                                  *
  27. *               CSELT  -  Turin  -  Italy                              *
  28. *               gnpaolo@aragorn.cselt.stet.it                          *
  29. ************************************************************************
  30.