At 7:39 AM -0700 4/17/06, Brad Hutchings wrote:

In Rb2005 and Rb2006r1, if I put this line into an Open event of a RectControl, it would accept dropped jpeg files:

    me.AcceptFileDrop "JPEG Image"

Note that I use the display name. Now, in Rb2006r2, this still works on the Mac but no longer works on Windows builds.

I have no clue what was happening behind the scenes to make this work before, but I suspect it's working differently now. So, what is the correct way to tell a RectControl that I want it to accept jpeg file drops?

What you're doing is correct, and its failure should be reported as a bug. However, it's not what I would recommend, unless you're taking your project back and forth to 5.5 or earlier. Instead, just name the file type object:

  me.AcceptFileDrop FileTypes.JPEGImage

I doubt this will fix the problem, since a FileType object converts itself to a string as the display name, which makes the above code equivalent to what you wrote (unless you made a typo not evident in your email). But I recommend it anyway, since it avoids the possibility of such typos.

HTH,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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>

Reply via email to