How to accept a drag&drop item?

2005-08-25 Thread Gajo Csaba
Hi, I was wondering if there's an easy solution to accepting dragged items that are coming from another application. Specifically, I have a browser window open, and from there I can drag the current link. If I drop it on the desktop, it will turn into a link to that page. And when it gets dr

Re: How to accept a drag&drop item?

2005-08-25 Thread Brian Yennie
Csaba, Well, you can do it with two lines of code, or none =). If you use an unlocked text field, it just works by default. I drag a link from FireFox to an editable field, and the URL appears. If you have a different kind of object receiving the drag, you can do something like this: on dr

Re: How to accept a drag&drop item?

2005-08-25 Thread Gajo Csaba
Brian Yennie <[EMAIL PROTECTED]> wrote: > Csaba, > > Well, you can do it with two lines of code, or none =). > > If you use an unlocked text field, it just works by default. I drag a > link from FireFox to an editable field, and the URL appears. WOW, I didn't know that! That's amaizing! It

Re: How to accept a drag&drop item?

2005-08-25 Thread Brian Yennie
WOW, I didn't know that! That's amaizing! It does work from FireFox, unfortunately it won't work when dragged from Opera.. oh well... Try this: on dragDrop answer keys(the dragData) end dragDrop That should tell you what keys are available from Opera. I just used "text" as an example that

Re: How to accept a drag&drop item?

2005-08-25 Thread Gajo Csaba
Brian Yennie <[EMAIL PROTECTED]> wrote: > > WOW, I didn't know that! That's amaizing! > > It does work from FireFox, unfortunately it won't work when dragged > > from Opera.. oh well... > > Try this: > > on dragDrop > answer keys(the dragData) > end dragDrop > > That should tell you what

Re: How to accept a drag&drop item?

2005-08-25 Thread J. Landman Gay
Gajo Csaba wrote: Hi, I was wondering if there's an easy solution to accepting dragged items that are coming from another application. Specifically, I have a browser window open, and from there I can drag the current link. If I drop it on the desktop, it will turn into a link to that page.