I use .Net 2005 for development of my project that uses Scintilla as a
script editor with a margin used for break points and marking error and a
folding margin. I keep hitting a very annoying problem in the Scintilla
editor, and I am wondering if others have hit it, or if I have missed
something that would solve it.

In the Microsoft editor, I am very used to selecting a line by clicking in
the white space to the left of the text, between the text and the folding
margin. This seems to work very well, particularly as the mouse pointer
changes from a text caret to a right-pointing arrow when you are over this
region, so it is easy to know that you are there.

In Scintilla, the mouse pointer stays as a caret when you are over the
SetMarginLeft() area. Even though I have increased this are to 8 pixels
wide, I find that I almost always end up clicking in the folding margin,
causing very annoying code folding instead of selecting the line... of
course, Scintilla does not take a click in this area as selecting a line
either (or perhaps I have disabled it somehow if it does)!

I would like to propose:
1) That when the mouse pointer is over this left margin it is changed from
the text caret to the right facing pointer.
2) That a click in this region selects the current line (i.e. has the same
selection properties as an insensitive margin).

I realise that I could achieve what I want by using all three margins, but
the convention is that the first margin is for line numbers, and I would
like to keep this option. Also, as you provide a nice way to set a left hand
white space margin with SetMarginLeft() it would be nice to take advantage
of it in a way that should not break anyone's code.

Greg





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

Reply via email to