> The Me.AcceptPictureDrop from an external source is not working for
> me in 2006 r2 for PC. (Ex. Drag .jpg file from desktop into
> REALbasic application.) It does accept drops from within the
> application (from canvas to canvas).
As far as I remember, AcceptPictureDrop receive Picture drop from the outside of
the object (usually other applications, but can be from another Object on that
window / object in other windows).
So, drag a file from the desktop (either Linux, Mac OS or Windows "desktop") to
the object is not handled by Me.AcceptPictureDrop but instead by
Me.AcceptFileDrop - Picture <> File -
> Using the same application built with 2006 r1 for PC the image is
> accepted from an external source and is added to the application.
Define external source.
> Has anyone else noticed this? Is there a difference in syntax
> between r1 and r2 that I am missing?
I cannot say, sorry
Emile
[EMAIL PROTECTED] wrote:
Subject: Me.AcceptPictureDrop not working in 2006 r2 for PC
From: Richard <[EMAIL PROTECTED]>
Date: Fri, 14 Apr 2006 13:39:41 -0400
I have narrowed the problem down from my post yesterday (see below).
The Me.AcceptPictureDrop from an external source is not working for
me in 2006 r2 for PC. (Ex. Drag .jpg file from desktop into
REALbasic application.) It does accept drops from within the
application (from canvas to canvas).
Using the same application built with 2006 r1 for PC the image is
accepted from an external source and is added to the application.
Has anyone else noticed this? Is there a difference in syntax
between r1 and r2 that I am missing?
I have not noticed the problem on the Mac version of 2006 r2.
Enjoy,
Richard
On Apr 13, 2006, at 3:39 PM, Richard wrote:
This relates to 2006 r2 for Windows. I was having problems in my
application with dropping an object on a canvas so I created a test
project. Just the default window with a canvas and editField on
it. I created the file types Text, Image/JPEG, and Image/x-pict.
Here is the extensive code used...
Canvas1.Open
Me.AcceptPictureDrop
Me.AcceptFileDrop ("Image/x-pict")
Me.AcceptFileDrop ("Image/JPEG")
Canvas1.DropObject
MsgBox "Hello???"
If Obj.PictureAvailable = True Then
Me.Backdrop = obj.Picture
End If
EditField1.Open
Me.AcceptTextDrop
Me.AcceptFileDrop ("Text")
EditField1.DropObject
MsgBox "Hello Text!!!"
If Obj.TextAvailable = True Then
Me.Text = obj.Text
End If
The editField works as advertisted but the canvas does not accept
any images. In my larger application it seems that the canvas will
accept images from within the application but not from external
applications or image files. Is there a setting or a line of code
that I missed?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>