home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / motif / 8374 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.4 KB  |  31 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!bcstec!aw108!mdr0264
  3. From: mdr0264@aw2.fsl.ca.boeing.com (Michael D. Riston)
  4. Subject: XmText: Obtaining the string value without allocating space.
  5. Message-ID: <1993Jan6.151418.2779@aw2.fsl.ca.boeing.com>
  6. Keywords: XmText, String Value
  7. Organization: fsl
  8. Date: Wed, 6 Jan 1993 15:14:18 GMT
  9. Lines: 20
  10.  
  11. Is there a way to get the XmText widget's internal string value character 
  12. pointer directly?
  13.  
  14. I am using XmTextGetString and XmNvalue to get a character pointer, but
  15. these methods both return a memory allocated string that I have to 
  16. delete when I am done using it.  When you have large files in the Text widget
  17. (like an editor), constantly allocating memory becomes very inefficient,
  18. whenever you want to look at the Text string (which is alot when your
  19. application is an editor).
  20.  
  21. ------------------------------------------------------------------------------
  22. Michael D. Riston           |Voice: (206) 662-4345 
  23. Boeing Commercial Airplanes |Boeing net: mdr0264@aw300
  24. P.O. Box 3707, M/S 19-MH    |UUCP: ..!uunet!bcstec!aw300!mdr0264
  25. Seattle, WA  98124-2207     |Internet: mdr0264@aw300.iasl.ca.boeing.com
  26. -- 
  27. ------------------------------------------------------------------------------
  28. Michael D. Riston           |Voice: (206) 234-2432 
  29. Boeing Commercial Airplanes |Boeing net: mdr0264@aw300
  30. P.O. Box 3707, M/S OW-31    |UUCP: ..!uunet!bcstec!aw300!mdr0264
  31.