Drag and Drop is handled via a DropHandler shell extension, this comes from IDropTarget and also IPersistFile. Here's a link to IDropTarget http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/oin _d_95tg.asp To set a DropHandler you use the registry: HKEY_CLASSES_ROOT \{filetype} \ShellEx \DropHandler {filetype} does not specify the extension of a file but rather the type of file it is, check HKEY_CLASSES_ROOT\batfile for an example wherein a DropHandler can be found.
Since Command can use Dlls Shouldn't it be possible to make some simple drag & dropping work? Perhaps if we had a simple dll that implemented some various drag and drop functions for .r files then Command could just call into that? I think this might be an interesting thing for Command, a library of dlls that are written to provide functionality for Rebol in things for which it is somewhat weak. Just an idea. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Anton Sent: Wednesday, October 02, 2002 1:28 PM To: [EMAIL PROTECTED] Subject: [REBOL] Re: how to drag'n'drop ? Maybe it would be possible through the system port one day (I don't know of any docs for it yet, I think it's not really ready in the latest betas.) To do it now, I think you would need to access external windows libraries to catch window messages. That needs /View/Pro or /Command. You can imagine that implementing drag&drop between rebol and native os on all platforms will be difficult, so it hasn't been done yet. But you could help it happen by looking up the windows API's required and some example code, probably c++, that can allow this to happen. It is possible for a Windows process to hook in to another process' window and listen to or modify the window messages that it receives. So you could launch a separate process to listen to your rebol window and wait for "drag-over" messages or however it is done. Anton. > I just accidentally discovered a great drag'n'drop feature of MSIE6 > > Drag an image onto another brower window and bang it displays the cached > version. That makes it much faster when you want to save/email/whatever > no more fiddly right-mouse clicking. > > Yesterday I was playing around with the wxPython demos. there's > nice one with > drag'n'drop. I want this for rebol apps => > > -open a browsder > -drag an image onto rebol/view... > -zing upload to remote site > > What is needed to do this in REBOL? > Would'nt it be sweet to have some of this in /View? > ./Jason -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes. -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
