On Sat, 2006-01-28 at 21:39 +0000, Anthony wrote:
> Hello Andrey,
> 
> Saturday, January 28, 2006, 9:30:38 PM, you wrote:
> 
> > How I can disable selection drag and drop in scintilla component?
> 
> I already asked about that, it looks like it will have to be patched
> by yourself.  (Unless Neil decides to add it as an official option ?)
> 

I also would find it very useful to have this.

The behavior I would like to be able to get is the same as in the other
text editors I'm using, which is:

If you click into a selection, deselect everything, and start a new
selection at the point where you have clicked.

So far, I'm doing this (I'm using wxWidgets with STC):

self.Connect(-1, -1, wx.stc.wxEVT_STC_START_DRAG, self.OnStartDrag)

def OnStartDrag(self, event):
    event.SetDragText("")

This means, if I inadvertently click into a selection, Scintilla now
does nothing, instead of messing up the whole text. The wanted behavior
of starting a new selection seems impossible, at least all the things I
tried wouldn't work - I'd be glad if someone can give me a hint how I
can do it.

Also, wxEVT_STC_START_DRAG isn't mentioned on
http://scintilla.sourceforge.net/ScintillaDoc.html , so it could be
wxWidgets specific.. anyone can confirm this?

-- 
Elias Pschernig

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to