[scintilla:feature-requests] #184 Option to disable drag/drop editing

1 view
Skip to first unread message

glenneroo

unread,
Sep 17, 2021, 4:06:45 PM9/17/21
to scintill...@googlegroups.com

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.

Neil Hodgson

unread,
Sep 17, 2021, 6:36:20 PM9/17/21
to scintill...@googlegroups.com

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

Zufu Liu

unread,
Apr 9, 2022, 5:47:56 AM4/9/22
to scintill...@googlegroups.com
  • labels: --> Scintilla, drag-and-drop
  • Group: --> Initial

[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

Nathaniel Braun

unread,
Nov 18, 2025, 9:16:19 AMNov 18
to scintill...@googlegroups.com

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

Neil Hodgson

unread,
Nov 18, 2025, 3:58:54 PMNov 18
to scintill...@googlegroups.com

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

Nathaniel Braun

unread,
Nov 19, 2025, 4:12:00 AMNov 19
to scintill...@googlegroups.com

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

Neil Hodgson

unread,
Nov 20, 2025, 5:48:20 PMNov 20
to scintill...@googlegroups.com

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

Nathaniel Braun

unread,
Nov 29, 2025, 12:28:10 PM (7 days ago) Nov 29
to scintill...@googlegroups.com

Here is a first version of the patch. Not sure how to write unit tests, your help is very welcome there. Thank you!

Attachments:

  • dd.patch (7.0 kB; application/octet-stream)

[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

Nathaniel Braun

unread,
Nov 29, 2025, 1:54:43 PM (6 days ago) Nov 29
to scintill...@googlegroups.com

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

Nathaniel Braun

unread,
Dec 1, 2025, 8:39:43 AM (5 days ago) Dec 1
to scintill...@googlegroups.com

@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

Neil Hodgson

unread,
Dec 2, 2025, 8:01:18 PM (3 days ago) Dec 2
to scintill...@googlegroups.com

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

Neil Hodgson

unread,
Dec 2, 2025, 8:07:11 PM (3 days ago) Dec 2
to scintill...@googlegroups.com

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

Neil Hodgson

unread,
Dec 2, 2025, 8:11:04 PM (3 days ago) Dec 2
to scintill...@googlegroups.com

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

Nathaniel Braun

unread,
Dec 3, 2025, 3:33:39 AM (3 days ago) Dec 3
to scintill...@googlegroups.com

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

Reply all
Reply to author
Forward
0 new messages