This project is read-only.

Multi selection

Topics: Developer Forum
Jul 29, 2012 at 6:42 PM
Edited Jul 29, 2012 at 6:46 PM


I want to use the multi selection feature, but unfortunally there are some problems.
To use the feature I call at first:
Then I call:
SendMessageDirect(SCI_ADDSELECTION, 20, 50)
To add the new selection. This works, like it should, but at the 2nd selection are red triangles. I attached a picture to show you, what I mean. In the documentation I didn't find anything about this. Can it be turned off? Because after I cleared the selections with:
SendMessageDirect(SCI_CLEARSELECTIONS, 0, 0)
The selections are cleared, but the red triangles are still shown. There is a picture how it looks. The scintilla developer told me he is sure that this is not because of the native scintilla core. Do you have an idea, what this can be?
Jul 30, 2012 at 8:30 PM

I can't see the picture but from what you are describing DropMarkers are getting inserted. DropMarkers are a stack based bookmarking feature. The red triangle indicates where the drop marker is placed. Hitting Esc will bring the caret at the last dropped marker and remove it. They are a ScintillaNet specific feature.

I don't know why they are getting inserted. Try removing the CTRL+M keybinding.

scintilla.Commands.RemoveBinding(Keys.M, Keys.Control, BindableCommand.DropMarkerDrop)