🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sindows.x.apps
Article #1

Drag 'n Drop

#1
From: Rohit Mehrotra
Date: Thu, 30 Jul 1992 13:11
44 lines
2034 bytes
XView

Can someone please tell me how to use the DND facility with XView 3
so that I can give textedit the name of the file to be read rather
than sending it a string ?

Ive implemented Drag n drop for my application and I can quite happily
accept data from textedit (either by pasting it in or by reading
the file when I drop onto my drop-site target).

However doing the reverse seems to rely on undocumented Sun facilities.
Specifically I am trying to understand the use of the TARGET atoms.
Normally data comes in as a XA_STRING, however textedit uses the
_SUN_HOST_NAME (is that spelled right?) and _SUN_FILE_NAME atoms
amongst others. If you do a strings of textedit or do an xlsatoms
you will see lots of _SUN* atoms which are not documented.

How can I copy a file to textedit without sending it the contents of
the file via the X-server.

The problem is that if I send anything to textedit it inserts it into
the current file rather than editing the new file I want it to.

If anyone knows of any example programs which use DND and can happily
talk to textedit this way then please point them out to me. 

Anyone know of any archives with good examples of the XView tricks of
the trade ?

I find the O'reilly book really a pretty poor document (Vol 7 rev 3). 
The sources from X11R5/contrib are NOT the same as suns so
they arent too helpful either.

Thanks in advance


Rohit Mehrotra

Please EMAIL me your answer and I would post a summary.
-- 
Rohit Mehrotra
------------------------------------------------------------------------------
VITAL				| 	10755 Meadowglen Lane, #238
Ph: 713-781-7406		| 	Houston, TX 77042.
Technical Details
Message-ID: <1992Jul30.131105.29649@NeoSoft.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!rohit

Show Full Headers
Complete Article Headers
Newsgroups: comp.sindows.x.apps,comp.windows.x.motif
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!rohit
From: rohit@NeoSoft.com (Rohit Mehrotra)
Subject: Drag 'n Drop
Organization: NeoSoft Communications Services -- (713) 684-5900
Date: Thu, 30 Jul 1992 13:11:05 GMT
Message-ID: <1992Jul30.131105.29649@NeoSoft.com>
Lines: 44