Re: [Fxruby-users] drag and drop with mozilla
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@kn...> - 2004-06-25 01:06:54
|
On Jun 24, 2004, at 9:48 AM, Peter Schrammel wrote: > Yes I get a lot of > SEL_DND_MOTION > text/x-moz-url > _NETSCAPE_URL > text/unicode > text/plain > text/html > lines. So it seems to work. Perhaps there's something wrong with the > ruby glue. In your example program that you sent, you're only accepting drops for the FXWindow.urilistType: if offeredDNDType?(FROM_DRAGNDROP, FXWindow.urilistType) acceptDrop end and the MIME type for that drag type is: $ ruby -e "require 'fox'; puts Fox::FXWindow.urilistTypeName" text/uri-list You listed a number of drag types that Mozilla is apparently offering (e.g. "text/x-moz-url", "_NETSCAPE_URL", etc.) but this is not one of the formats you listed. So in other words, you haven't accepted drops for any of the flavors of data that Mozilla's prepared to offer. See what happens if you also accept drops for, say, "text/plain" -- which FOX assigns to FXWindow.textType (and FXWindow.textTypeName). > Thanks...got that. It's rather disappointing...I need DnD on Linux/Win > and Mac (if possible). And I can't rewrite mozilla or ie to be a fox > app. Sure, I understand. For what it's worth, I have the feeling you can get this working with Mozilla on Linux just fine. |