|> SetMarginTypeN(int margin, int iType) gets SC_MARGIN_SELECT(3) meaning it's |> a selection margin and has the text background colour. This feels better |> than allowing us to set margin background colours, as this would involve |> adding extra state information to the margins, and extra code in the |> container to make sure that the margin colour stays in step with the text |> background.
| Don't call it a selection margin type as that implies the other |margin types shouldn't be capable of selection. I'm taking this as a possible yes... Would you accept a patch with SC_MARGIN_SPACER(3) that did this (or your suggested name)? I haven't looked at how difficult this would be yet, but suspect it is not that hard. If this were done, I would suggest that this margin would be exactly the same as SC_MARGIN_SYMBOL except for the background colour. I have tried to achieve the line selection effect with the folding margin by detecting clicks on margin lines without a fold point and then selecting the line. This does work for a single line, but you cannot extend the selection with the mouse pointer. Even if this did work, it would not be a complete solution as users can choose to hide the folding margin, and I allow setting break points by single clicks on the remaining margin, so this is not available for line selection. Best wishes, Greg Smith _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
