home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / wizards / 3357 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.9 KB  |  54 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!rohit
  3. From: rohit@NeoSoft.com (Rohit Mehrotra)
  4. Subject: Drag 'n Drop
  5. Organization: NeoSoft Communications Services -- (713) 684-5900
  6. Date: Thu, 30 Jul 1992 13:13:31 GMT
  7. Message-ID: <1992Jul30.131331.29800@NeoSoft.com>
  8. Lines: 44
  9.  
  10. XView
  11.  
  12. Can someone please tell me how to use the DND facility with XView 3
  13. so that I can give textedit the name of the file to be read rather
  14. than sending it a string ?
  15.  
  16. Ive implemented Drag n drop for my application and I can quite happily
  17. accept data from textedit (either by pasting it in or by reading
  18. the file when I drop onto my drop-site target).
  19.  
  20. However doing the reverse seems to rely on undocumented Sun facilities.
  21. Specifically I am trying to understand the use of the TARGET atoms.
  22. Normally data comes in as a XA_STRING, however textedit uses the
  23. _SUN_HOST_NAME (is that spelled right?) and _SUN_FILE_NAME atoms
  24. amongst others. If you do a strings of textedit or do an xlsatoms
  25. you will see lots of _SUN* atoms which are not documented.
  26.  
  27. How can I copy a file to textedit without sending it the contents of
  28. the file via the X-server.
  29.  
  30. The problem is that if I send anything to textedit it inserts it into
  31. the current file rather than editing the new file I want it to.
  32.  
  33. If anyone knows of any example programs which use DND and can happily
  34. talk to textedit this way then please point them out to me. 
  35.  
  36. Anyone know of any archives with good examples of the XView tricks of
  37. the trade ?
  38.  
  39. I find the O'reilly book really a pretty poor document (Vol 7 rev 3). 
  40. The sources from X11R5/contrib are NOT the same as suns so
  41. they arent too helpful either.
  42.  
  43. Thanks in advance
  44.  
  45.  
  46. Rohit Mehrotra
  47.  
  48. Please EMAIL me your answer and I would post a summary.
  49. -- 
  50. Rohit Mehrotra
  51. ------------------------------------------------------------------------------
  52. VITAL                |     10755 Meadowglen Lane, #238
  53. Ph: 713-781-7406        |     Houston, TX 77042.
  54.