1. when dragging text from another app using 136.1.6+g1ac1b14+chromium-136.0.7103.114 and nothing happened , but the old one was activated!
2.when dragging a url link text from another app chrome APP will be opened but this does'nt hanppen with the old CEF4!
Keen for your help, thank you!
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Chromium.OnDragEnter doesn't be trigged
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Chromium.OnDragEnter doesn't be trigged
Please, provide a step by step guide to test this issue with all the details and version information you can provide.
Check the PopupBrowser and PopupBrowser2 demos. They have some drag and drop tests.
Check the PopupBrowser and PopupBrowser2 demos. They have some drag and drop tests.
Re: Chromium.OnDragEnter doesn't be trigged
if Chromium1.InitializeDragAndDrop is need before drag sth. to the window?
I cannot find drag example in PopupBrowser2 demos
I cannot find drag example in PopupBrowser2 demos
You do not have the required permissions to view the files attached to this post.
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Chromium.OnDragEnter doesn't be trigged
TChromiumCore.InitializeDragAndDrop is only used in OSR mode. See the code comments for more details.
Chromium handles drag and drop in the browser internally and the PopupBrowser2 demo has 2 buttons showing how to drag and drop HTML elements and files.
If you want to customize dragging and dropping then intercept the WM_DROPFILES message :
https://stackoverflow.com/questions/25425806/how-can-i-drag-drop-a-file-from-the-shell
Chromium handles drag and drop in the browser internally and the PopupBrowser2 demo has 2 buttons showing how to drag and drop HTML elements and files.
If you want to customize dragging and dropping then intercept the WM_DROPFILES message :
https://stackoverflow.com/questions/25425806/how-can-i-drag-drop-a-file-from-the-shell
Re: Chromium.OnDragEnter doesn't be trigged
But Chromium.OnDragEnter is there and with old CEF4Delphi it can be trigged when something is dragged on the browser.
https://magpcss.org/ceforum/apidocs/projects/(default)/CefDragHandler.html
https://magpcss.org/ceforum/apidocs/projects/(default)/CefDragHandler.html
- salvadordf
- Posts: 4620
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Chromium.OnDragEnter doesn't be trigged
That event works when the browser uses the Alloy runtime style.
Perhaps it's not implemented for the Chrome runtime in the CEF project.
Perhaps it's not implemented for the Chrome runtime in the CEF project.
Re: Chromium.OnDragEnter doesn't be trigged
The old CEF project support it but the new one does't. 
