realbasic-nug
[Top] [All Lists]

Re: Is it even possible to drag and drop on the PC at all?

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: Is it even possible to drag and drop on the PC at all?
From: "Theodore H. Smith" <delete at elfdata dot com>
Date: Sun, 30 Sep 2007 22:12:52 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <mailman dot 66695 dot 1191184907 dot 256 dot realbasic-nug at lists dot realsoftware dot com>
On 30 Sep 2007, at 21:41, realbasic-nug- 
request at lists dot realsoftware dot com wrote:

> Subject:
> To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
> Message-ID: <C32562DE dot 22A7E%mckernonjunk at earthlink dot net>
> Content-Type: text/plain;     charset="US-ASCII"
>
>> OK, I have a simple project. Just 2 classes. (OK it could have been 1
>> but I cut it down from 400 classes so it's a start).
>>
>> Just about 20 lines of code. Still fails. On PC. And works on Mac.
>>
>> I can't drag and drop on the PC. Why? It works on Mac, exactly the  
>> same.
>
> I'm unfortunately not at home where my PC is handy, but I looked at  
> your
> code and a couple of things got my attention:
>
> Returning True from either DragEnter or DragOver prevents the  
> DropObject
> event from firing (according to the Language Reference). It seems  
> to me all
> you need is the DropObject event to accomplish what you're doing.


Strange.

Then it seems like the bug is that it DID work on the Mac. Either  
way, the behaviour is inconsistant.
> You have all three of these statements:
>
>   me.AcceptRawDataDrop( "ALFI" )
>   me.AcceptTextDrop
>   me.AcceptMacDataDrop( "ALFI" )
>
> You really only need this one:
>
>   me.AcceptRawDataDrop( "ALFI" )

I know, but I was trying everything cos that was the first thing I  
tried and it didn't work.

>
> Also, you should check to see if ALFI data is indeed available  
> before you
> ask for it -

OK.

> And just for safety's sake, I use lowercase four-character codes  
> for things
> like this, since uppercase ones are generally used by the OS.

Shouldn't privaterawdata handle that?

Thanks again.

--
http://elfdata.com/plugin/
"String processing, done right"


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>