Xojo Conferences
XDCMay2019MiamiUSA

Listbox Drop Object (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Fastest way to exchange data between applications.
Next thread: Off Window Text Area


Getting ListBox Cell Left and Top   -   Rubber Chicken Software Co.
  Listbox Drop Object   -   Tom Russell
   Re: Listbox Drop Object   -   Dennis Birch
    Re: Listbox Drop Object   -   Tom Russell

Listbox Drop Object
Date: 09.08.09 22:02 (Sun, 09 Aug 2009 17:02:38 -0400)
From: Tom Russell
Im trying to use the drop object event on a listbox but cannot seem to
get it to work for nothing.

In the open event of the listbox I have:

me.AcceptFileDrop("special/any")

And then my code in the dropobject event but it will never fire and if I
drag a folder on the listbox it will not stay but just goes away back to
where I dragged it from.

Using OSX 10.5.8 and RB 2009R3

Any ideas?

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

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

Re: Listbox Drop Object
Date: 10.08.09 01:45 (Sun, 9 Aug 2009 17:45:57 -0700)
From: Dennis Birch
On Sun, Aug 9, 2009 at 2:02 PM, Tom Russell<<email address removed>> wrote:
> Im trying to use the drop object event on a listbox but cannot seem to get
> it to work for nothing.
>
> In the open event of the listbox I have:
>
> me.AcceptFileDrop("special/any")

You need to provide a proper file type filter to AcceptFileDrop. If
you're doing this in Mac OS X, that's a four-letter Mac file type
code. I believe you could use "????" in place of "special/any".

Just to make it easy on myself, and to ensure that it'll work, I
create an RB fileType definition for any types I know want to use in
my project, and use that as the filter in calls to AcceptFileDrop.

For example:

me.AcceptFileDrop(appFileTypes.any) // "appFileTypes is the name of my
FileType instance, and "any" is the name I have assigned to the
special/any file type definition

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

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

Re: Listbox Drop Object
Date: 10.08.09 01:51 (Sun, 09 Aug 2009 20:51:34 -0400)
From: Tom Russell
Dennis Birch wrote:
> On Sun, Aug 9, 2009 at 2:02 PM, Tom Russell<<email address removed>> wrote:
>
>> Im trying to use the drop object event on a listbox but cannot seem to get
>> it to work for nothing.
>>
>> In the open event of the listbox I have:
>>
>> me.AcceptFileDrop("special/any")
>>
> You need to provide a proper file type filter to AcceptFileDrop. If
> you're doing this in Mac OS X, that's a four-letter Mac file type
> code. I believe you could use "????" in place of "special/any".
>
> Just to make it easy on myself, and to ensure that it'll work, I
> create an RB fileType definition for any types I know want to use in
> my project, and use that as the filter in calls to AcceptFileDrop.
>
> For example:
>
> me.AcceptFileDrop(appFileTypes.any) // "appFileTypes is the name of my
> FileType instance, and "any" is the name I have assigned to the
> special/any file type definition
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
yup...Thanks Dennis. How I missed that is beyond me!

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

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