Re: Can you drag and drop a Windows file into a Draw Widget? [message #26933 is a reply to message #26376] |
Thu, 04 October 2001 08:27   |
Richard Younger
Messages: 43 Registered: November 2000
|
Member |
|
|
Peter Mason wrote:
>
> Duty calls.
> In a renewed attempt to maintain my reputation of d.o.d.c, I hereby
> post my nomination for "daddy's job of the year". Personally, I
> think it makes J.D.'s text-widget subterfuge (of a couple of years
> back) look as much a part of IDL as, say, a piston looks like a part
> of an internal combustion engine. I'm particularly proud of my
> method of getting "HWND"s for IDL widgets and challenge anyone to beat
> it on the grounds of "ultra-risky platform-specific code that's sure
> to break one day".
>
> Cheers
> Peter Mason
> CSIRO DEM MMTG
> mailto://peter.mason@csiro.au
I'm impressed.
There aren't many good windows programmers who are regular posters, so
it's good to see one chime in.
David was right, there isn't a way to do it in IDL. The solution isn't
really an IDL solution at all, but subclasses ... er, excuse me,
politely hijacks ... the IDL Widget window on an OS level (it's polite
because it gives the window back). I had to spend a little quality time
with my Big Thick Windows Programming(tm) book to figure out what was
going on.
Thanks for the solution and the interesting code!
Back to what I should be doing.
Best,
Rich
--
Richard Younger
|
|
|