WINDOWS drag and drop into a draw widget [message #56037] |
Sun, 30 September 2007 10:47  |
markb77
Messages: 217 Registered: July 2006
|
Senior Member |
|
|
Hi,
A few years ago a question was posted here asking whether it is
possible, in windows, to drag and drop a file from Window explorer
into an IDL draw widget. In the ensuing debate, Peter Mason posted
some sort of a solution to the problem. I'm wondering, has any more
progress on this been made? Do any of the recent additions to IDL
allow for this? I think this is a very useful feature.. handy for
opening files.
Also, the FTP server where Peter originally posted his solution on has
gone down. Does anyone here have his file, dropfile.zip? I'd like to
see what he did...
thanks,
Mark Bates
|
|
|
Re: WINDOWS drag and drop into a draw widget [message #56109 is a reply to message #56037] |
Tue, 02 October 2007 18:27   |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
On Oct 1, 2:47 am, mark...@gmail.com wrote:
> Hi,
>
> A few years ago a question was posted here asking whether it is
> possible, in windows, to drag and drop a file from Window explorer
> into an IDL draw widget. In the ensuing debate, Peter Mason posted
> some sort of a solution to the problem. I'm wondering, has any more
> progress on this been made? Do any of the recent additions to IDL
> allow for this? I think this is a very useful feature.. handy for
> opening files.
>
> Also, the FTP server where Peter originally posted his solution on has
> gone down. Does anyone here have his file, dropfile.zip? I'd like to
> see what he did...
>
> thanks,
>
> Mark Bates
Hi Mark,
I still have Peter Mason's dropfile code.
I've placed it at http://www.cool.id.au/IDL/
Note that I've modified the dropfile_test.pro routine to actually
display image files dragged
onto the IDL window, and best of all, it still works under XP SP2
using IDL v6.4!!
So check out the separate dropfile_test.pro rather than the original
in the zip file, which doesn't
display the image, but just the filename.
Andrew C.
|
|
|
|