"Greg Smith" <[EMAIL PROTECTED]> wrote: > Josiah: > >At least in my experience of using scintilla embedded in various > >projects, clicking on the line number margin selects the line that is > >clicked on. Also, 8 pixels isn't a very wide target to click on. > > Hi Josiah, thanks for the suggestion. > > This is true, but a) I don't normally display line numbers, and b) I have > two other margins that I do display that would be between the line numbers > and the text.
Presumably you are using Scintilla to display some sort of source code or otherwise embedded in some application (in .NET if I remember your original post correctly). If you don't want to *see* the line numbers, you can still use the line-number margin for a variable-width "click here to select a line". At least on the platform I use Scintilla on the most, there is a 16 pixel space between the rightmost character in the number for line numbers, and the actual right edge of the margin. You could recolor the background to be anything you wanted (white presumably), make it as wide as you wanted (up to 16 pixels), and you could get the same effect without changing the underlying layout. Heck, you can even choose the line number margin to be to the right of the folding margin (at least according to the Scintilla documentation, if I remember my reading of them). > 8 pixels is purely arbitrary (but does seem to be absolutely fine) and is > set by the container and could be set according to font sizes or screen > resolution (Scintilla sets 1 pixel as the default gap). If you say that 8 pixels is wide enough to click on, cool. I personally have found that most of my use-cases for selecting an entire line to be better served by allowing "sloppy" line selection. That is, let us say I want to indent a series of lines more than they already are, I should be able to indent all lines that are partially selected (except for the last line, don't indent if only whitespace is selected). Similarly for commenting/uncommenting, adding hard line breaks, etc. PyPE (http://pype.sf.net) does this, and I've never heard anyone complain about needing a better/more effective way of selecting lines, except for those cases where I had forgotten to add the sloppy selection ability. - Josiah _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
