Page 1 of 1

Disable dropping images/links to chromium window

Posted: Mon Sep 02, 2019 3:10 pm
by dinko
If I drag and drop a link or image from my computer to chromium window it replaces the content with the dropped object.
Is there any way to totally disable drag and drop external resources to my chromium window?

Thanks

Re: Disable dropping images/links to chromium window

Posted: Mon Sep 02, 2019 3:28 pm
by salvadordf
Use TChromium.OnBeforeBrowse and check the "request.url" value to block unwanted URLs.

Read this for more information about that event :
https://magpcss.org/ceforum/apidocs3/pr ... bool,bool)