From: "Alexander G. M. Smith" <agmsmith@xxxxxxxxxx>
To: openbeos@xxxxxxxxxxxxx
Date: Mon, 24 Mar 2003 18:12:12 -0500 EST
Ben Allen wrote on Mon, 24 Mar 2003 16:56:00 GMT:
> HI, I'm a lurker that is trying to implement an idea posed on the
> GlassElevator list. One problem I'm coming across maybe one of you
> folks can answer. When a file is dragged from the desktop or the
> tracker onto an application icon, what information is sent to the
> target application, and what format is it in? The BeBook and
> O'Reilley's "Programming the BeOS" have been unhelpful in this matter
> (unless I missed something, that's a possibility). Please let me know
> if you can help me or direct me to where I can find this information.
> Thank you very much!
http://bang.dhs.org/be/bebook/Drag%20and%20Drop/DragNDrop.html
And if you use ViewIt (http://www.bebits.com/app/315) to see the drag and drop
message, you see this for a simple file drop:
What=B_SIMPLE_DATA
B_POINTER_TYPE "src_window" 0x80023510
B_POINT_TYPE "click_pt" x=24.00 y=12.00
B_MESSENGER_TYPE "TrackerViewToken" Remote Looper: Team #31
"Tracker" (application/x-vnd.Be-TRAK)
B_REF_TYPE "refs"
File: /boot/var/tmp/default.dat
Size: 18064 bytes.
B_INT32_TYPE "buttons" 1 (0x00000001)
B_POINT_TYPE "_drop_point_" x=128.00 y=255.00
B_POINT_TYPE "_drop_offset_" x=24.00 y=12.00
- Alex