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

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!ulowell!koverber
  3. From: koverber@cs.ulowell.edu (Kurt Overberg)
  4. Subject: Help with freaking out XmText?
  5. Message-ID: <C02w1D.Bw0@ulowell.ulowell.edu>
  6. Originator: koverber@bigmax.ulowell.edu
  7. Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
  8. Organization: University of Massachusetts at Lowell Computer Science
  9. Date: Wed, 30 Dec 1992 15:22:24 GMT
  10. Lines: 27
  11.  
  12.  
  13.  
  14. Hello, 
  15.  
  16.     Im currently trying to brain-damage a XmText Widget.  Ok, 
  17. here is what i want it to do...
  18.  
  19. Imagine a password requester.  All I want to happen is when I type
  20. into the text field, instead of putting the characters there, I want
  21. asterixes ("****" to appear.  Has anyone done this?  I have tried a 
  22. few way, but it looks like it may have to be a major hack.  Things
  23. I have tried:
  24.  
  25. Everytime a key is pressed (XmNmodifyValueCallback) i call the action-procedure
  26. "delete-previous-character", to delete the character and then I 
  27. do a XmTextInsert to insert the *.  This core dumps seriously.
  28. I don't know why, so if anyone has any ideas, PLEASE let me know...
  29. Thanks!
  30.  
  31.                         peace out.
  32.  
  33.                             kurt
  34.  
  35. -- 
  36. Kurt Overberg            | I honestly doubt you care about my opinions ;^)      
  37. U of Mass, Lowell        | "Poke a double-decker on a Llama taboot,       
  38. koverber@cs.ulowell.edu  |  Llama taboot, taboot!"      -Phish
  39.