Page 1 of 1
Chromium.OnDragEnter doesn't be trigged
Posted: Thu May 22, 2025 1:21 pm
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!
Re: Chromium.OnDragEnter doesn't be trigged
Posted: Sun May 25, 2025 5:23 pm
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.
Re: Chromium.OnDragEnter doesn't be trigged
Posted: Tue May 27, 2025 10:18 am
by coater
if Chromium1.InitializeDragAndDrop is need before drag sth. to the window?
I cannot find drag example in PopupBrowser2 demos
Re: Chromium.OnDragEnter doesn't be trigged
Posted: Fri May 30, 2025 3:43 pm
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
Re: Chromium.OnDragEnter doesn't be trigged
Posted: Mon Jun 02, 2025 12:55 pm
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
Re: Chromium.OnDragEnter doesn't be trigged
Posted: Tue Jun 03, 2025 3:53 pm
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.
Re: Chromium.OnDragEnter doesn't be trigged
Posted: Wed Jun 04, 2025 1:26 pm
by coater
The old CEF project support it but the new one does't.
