On Apr 30, 2004, at 2:20 PM, Margaret Brock wrote:
Boy are you guys ever smart. As I was writing this, I got an idea and
it worked - Thanks LOL
I have a window with a canvas on it. In the canvas Open event I put
me.acceptfiledrop("image/jpg") and some more code in the dropobject
event.
When I drag a jpg file to the canvas in the running application, the
canvas lights up (signifying that it will accept the file) and in the
debugger, it definitely has accepted the file, but the picture
property of the dragitem is nil.
You're looking in the wrong spot. You're dropping a file on the
Canvas, so you'll need to check the DragItem.FolderItem property.
There you may find a FolderItem that you can open to get a Picture.
--------------
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|