Page 1 of 1

Disable drag-and-drop an image

Posted: Tue Jan 29, 2019 11:44 pm
by Ceprotec
Hello, Sergey.

How to disable drag-and-drop an image from the editor?

Re: Disable drag-and-drop an image

Posted: Wed Jan 30, 2019 7:31 am
by Sergey Tkachenko
You can only disable drag&drop from TRichView completely.
Include rvoDisallowDrag in the Options property.

Re: Disable drag-and-drop an image

Posted: Wed Jan 30, 2019 10:45 am
by Ceprotec
Is included, and allows drag and drop

Re: Disable drag-and-drop an image

Posted: Wed Jan 30, 2019 5:47 pm
by Sergey Tkachenko
If included, drag&drop FROM this editor is not possible. But it does not prevent dragging INTO this editor.
To disable accepting all/some format from drag&drop, exclude values from AcceptDragFormats property.

Re: Disable drag-and-drop an image

Posted: Thu Jan 31, 2019 12:03 pm
by Ceprotec
It worked.
Thanks Sergey!