home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / x / motif / 5766 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.4 KB

  1. Path: sparky!uunet!haven.umd.edu!mimsy!afterlife!tecsun1!tmoulto
  2. From: tmoulto@tecsun1.etl.army.mil (Thomas A. Moulton)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Deleting text inside a Scrolled Text Widget
  5. Summary: Deleting text inside a Scrolled Text Widget
  6. Keywords: Scrolled Text Widget
  7. Message-ID: <1248@tecsun1.etl.army.mil>
  8. Date: 21 Aug 92 20:14:16 GMT
  9. Organization: U.S. Army Topographic Engineering Center, Ft. Belvoir, VA.
  10. Lines: 22
  11.  
  12.  
  13.         I have written a text editor using the Scrolled Text Widget.
  14.  
  15. text = XmCreateScrolledText(form, "text", TextArgs, TextArgCnt);
  16.                                                                    re
  17. Whenever a line or groups of lines are deleted from text inside this     et
  18. widget the Scrolled Text widget most often than not becomes premature   o
  19. in displaying the end of the text buffer.  For instance, if I were to delete
  20. a twenty line procedure from the text buffer and then scroll to the bottom
  21. of the file, the true bottom of the file would not be showing.  In other
  22. words the Scrolled Widget appears to get mixed up as to where the end of 
  23. the text buffer is.  The result is that the user is unable to see the bottom
  24. portion of the text buffer.
  25.  
  26.     I would appreciate anyones insight into this matter.  I do not 
  27. believe that this is a glich in my code.  I have seen another program which
  28. uses a Scrolled Text Widget and it also suffers from the same problem.
  29.  
  30. Thanks,
  31.  
  32.  
  33. Tom Moulton
  34.