gettingstarted
[Top] [All Lists]

Re: Drag a .jpg onto canvas - what am I doing wrong

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Drag a .jpg onto canvas - what am I doing wrong
From: Charles Yeomans <yeomans at desuetude dot com>
Date: Fri, 30 Apr 2004 14:22:41 -0400
Delivered-to: gettingstarted at lists dot realsoftware dot com
List-help: <mailto:gettingstarted-request@lists.realsoftware.com?subject=help>
List-id: Getting Started <gettingstarted.lists.realsoftware.com>
List-post: <mailto:gettingstarted@lists.realsoftware.com>
References: <0C99A566-9AD3-11D8-BBD9-0003936797FA at sasktel dot net>

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>

<Prev in Thread] Current Thread [Next in Thread>