Hello
Im coding some listview in the webgadget because im adding some additional features like animation, etc.
It works fine now, i can add files to my webgadget listview from openfilerequester, etc. I mean, its interacting with my PB code as its was more or less a gadget.
The problem im facing is that if user try to drag a file into this webgadget based listview it could do one of 2 things: navigate to the file (if its possible like if its an image) or try to open it if its another kind of file.
Im looking for a way to avoid this, trying to intercept the drag and drop of files into webgadget to know which file was dragged and stop webgadget to doing anything about.
Any help is welcome.
*Additional comment:
I am trying to use webgadget adn AJAX to make the GUI of my app, but using those webgadget gadgets as it was more or less PB gadgets, and im finding very nice results (specially visual ones)
Intercepting drag and drop files in to the webgadget?
I know this comes very late, but i just stumbled over the solution by accident.
This prevents Drag & Drop to the WebGadget:
This prevents Drag & Drop to the WebGadget:
Code: Select all
Browser.IWebBrowser2 = GetWindowLong_(GadgetID(#WebGadget), #GWL_USERDATA)
If Browser
Browser\put_RegisterAsDropTarget(#VARIANT_FALSE)
EndIf
quidquid Latine dictum sit altum videtur
-
- Enthusiast
- Posts: 157
- Joined: Tue Feb 13, 2007 6:16 pm
- Location: Romania
- Contact:
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
http://www.purebasic.fr/english/viewtopic.php?t=30659dose anyone have a solution for disable drag and drop on a web gadget ?

I don't think the callback solution proposed by utopiomania will work with the
Mozilla flag. The Mozilla ActiveX control is very limited, sorry.
> another question will the web gadget work with Mozilla flag if the user doesn't have FireFox installed ?
The user has to install the Mozilla ActiveX control. Thats a separate download,
and not directly related to Firefox iirc.
Mozilla flag. The Mozilla ActiveX control is very limited, sorry.
> another question will the web gadget work with Mozilla flag if the user doesn't have FireFox installed ?
The user has to install the Mozilla ActiveX control. Thats a separate download,
and not directly related to Firefox iirc.
quidquid Latine dictum sit altum videtur