Will this ever be added? Since Notepad++ depends on this project, a lot of people would really love to have the option to disable drag and drop, as evidenced by multiple questions on StackOverflow as well as SuperUser (StackExchange sites).
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group:
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Fri Nov 23, 2007 04:40 AM UTC
Owner: Neil Hodgson
I couldn't find this option in the documentation, but
it seems like it should be pretty trivial to add. I
would like an option to disable drag/drop text editing
within the control.
Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
I do not know if it will ever be added. Scintilla is an open source project and depends on people contributing implementations of new features.
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group:
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Fri Sep 17, 2021 08:06 PM UTC
Owner: Neil Hodgson
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Fri Sep 17, 2021 10:36 PM UTC
Owner: Neil Hodgson
Hi all, I intend to implement a V0 this feature. I tried it by making a change in Notepad++'s Scintilla version. It consists in removing the line of code setting inDragDrop to DragDrop::initialin src/Editor.cxx at line 4927. This flag can be a static flag passed to Scintilla when initializing it, and that flag would be read-only from initialization. This means that, in this V0, it will not be possible to enable or disable drag-and-drop on the fly, and it will require restarting the editor. We can tackle this in V1. Still worth it, in my opinion.
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Sat Apr 09, 2022 09:47 AM UTC
Owner: Neil Hodgson
This work appears to be azt an early stage where it should not be included in Scintilla as yet.
If this is to be included in Scintilla it should be modifiable after start. It should add to the normal API as a SCI_ message.
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Tue Nov 18, 2025 02:16 PM UTC
Owner: Neil Hodgson
Thank you @nyamatongwe. Could you please point me towards an example of such a message so I can use that as a reference implementation? Thank you!
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Tue Nov 18, 2025 08:58 PM UTC
Owner: Neil Hodgson
The UndoCollection property is a similar boolean feature. Search for 'UndoCollection' (case-insensitive) in all Scintilla files to find all the declarations, code, documentation, and tests related to this property.
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Wed Nov 19, 2025 09:11 AM UTC
Owner: Neil Hodgson
Here is a first version of the patch. Not sure how to write unit tests, your help is very welcome there. Thank you!
Attachments:
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Thu Nov 20, 2025 10:48 PM UTC
Owner: Neil Hodgson
And here is the patch to add the feature to SciTE.
Attachments:
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Sat Nov 29, 2025 05:28 PM UTC
Owner: Neil Hodgson
@nyamatongwe could you please assign this feature request to me? Thank you.
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Sat Nov 29, 2025 06:54 PM UTC
Owner: Neil Hodgson
What would assigning the feature request do? It's not really a concept within this tracker or the project.
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Mon Dec 01, 2025 01:39 PM UTC
Owner: Neil Hodgson
Its difficult to test interactive feature but the API can be checked to return a reasonable result with the setter changing this result. The testUndoCollection method can be used as an example.
The patch blocks dragging from Scintilla but not dropping into Scintilla. It is still possible to drag from another application like Chrome into Scintilla.
It would be better, but not essential, to use a selection I beam cursor over the selection when it can not be dragged instead of the arrow.
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Wed Dec 03, 2025 01:01 AM UTC
Owner: Neil Hodgson
No real use case for this feature has been described so it is hard to understand the scope of control needed. The earlier post talked about Notepad++ and how they present the option is up to them. For SciTE, I'd either avoid it completely or make it a properties file setting instead of adding a menu item.
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Wed Dec 03, 2025 01:07 AM UTC
Owner: Neil Hodgson
No problem, let's avoid it completely in SciTE, then.
[feature-requests:#184] Option to disable drag/drop editing
Status: open
Group: Initial
Labels: Scintilla drag-and-drop
Created: Thu Feb 03, 2005 10:04 PM UTC by Farshid Lashkari
Last Updated: Wed Dec 03, 2025 01:10 AM UTC
Owner: Neil Hodgson