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.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Chromium.OnDragEnter doesn't be trigged

Post Reply
coater
Posts: 210
Joined: Sat Sep 29, 2018 1:51 pm

Chromium.OnDragEnter doesn't be trigged

Post by coater »

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!
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Chromium.OnDragEnter doesn't be trigged

Post by salvadordf »

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.
coater
Posts: 210
Joined: Sat Sep 29, 2018 1:51 pm

Re: Chromium.OnDragEnter doesn't be trigged

Post by coater »

if Chromium1.InitializeDragAndDrop is need before drag sth. to the window?
I cannot find drag example in PopupBrowser2 demos
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Chromium.OnDragEnter doesn't be trigged

Post by salvadordf »

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
coater
Posts: 210
Joined: Sat Sep 29, 2018 1:51 pm

Re: Chromium.OnDragEnter doesn't be trigged

Post by coater »

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
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Chromium.OnDragEnter doesn't be trigged

Post by salvadordf »

That event works when the browser uses the Alloy runtime style.
Perhaps it's not implemented for the Chrome runtime in the CEF project.
coater
Posts: 210
Joined: Sat Sep 29, 2018 1:51 pm

Re: Chromium.OnDragEnter doesn't be trigged

Post by coater »

The old CEF project support it but the new one does't. :(
Post Reply