Withjazz wrote:
Hi.
I'm working on the project using gecko1.9.1.2 with visual studio 2008 c
++.
I've found article about disabling drag&drop files to the view using
gecko at the Mozilla Developer Center.
(https://developer.mozilla.org/en/Mozilla_Embedding_FAQ/How_do_I...)
I added code to my project as the article written, but it doesn't work
for me and even the breakpoint on the code that method from
nsIClipboardDragDropHooks interface wasn't activated.
Please give me some advice or help.
Thanks.
Hi,
I have done this a few years ago but probably this code still works with
newer gecko versions. You have to add a "dragdrop" and a "draggesture"
event listeners to your frame. I have done it in C++ code, and not in
the javascript of the page itself, but I guess you can do it in
Javascript. For more information, you may want to check these pages for
example:
http://www-archive.mozilla.org/xpfe/xptoolkit/dragDrop.html
https://developer.mozilla.org/En/DOM/Window.ondragdrop
Hope that helps
Regards
Alex
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding