home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14149 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.3 KB  |  42 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!das.wang.com!wang!news
  3. From: draz@tochna.technion.ac.il (David Raz)
  4. Subject: Re: Athena Widgets /Text widgets
  5. Organization: Technion, Israel Inst. of Technology
  6. Date: Tue, 21 Jul 1992 17:23:18 GMT
  7. Message-ID: <1992Jul21.172318.29447@discus.technion.ac.il>
  8. References: <4eOhnxe00ioWA4EW9=@andrew.cmu.edu> <1992Jul20.183154.19717@ucunix.san.uc.edu>
  9. Sender: news@wang.com
  10. Lines: 30
  11.  
  12. In article <1992Jul20.183154.19717@ucunix.san.uc.edu>, gregortj@ucunix.san.uc.edu (TONYA JEANETTE GREGORY-RAPP) writes:
  13. |> How do you save files using XawAsciiSave();  This function needs
  14. |> the AsciiSourceObject.  I do not know how to point to it because, I did not
  15. |> create it.  I think it is a child of Text Widget.  I am able to point to
  16. |> the Text Widget.
  17. |> 
  18. |> Thank you,
  19. |> 
  20. |> Tonya
  21. |> 
  22. |> 
  23.  
  24. Simply - the AsciiSourceObject is a resource of the Text widget.
  25. use something like:
  26.  
  27. Widget src;
  28.  
  29. XtVaGetValues(textwidget,
  30.                 XtNtextSource, &src,
  31.                 NULL);
  32. ........
  33.  
  34. XawAsciiSave(src);
  35.  
  36. hope this helps.
  37. -- 
  38. David Raz                 internet:  draz@ee.technion.ac.il
  39. Assistant and system programmer     bitnet  :  draz@techunix 
  40. Software lab,EE faculty,Technion     phone:  work: 04-294643  home: 08-492628  
  41. Haifa,32000   Israel       home mail: 7 Shkolnik St. , Rehovot 76209 ,Israel
  42.