Greg Smith:
We could make the second argument to SetMarginTypeN call a set of flags,
then you could have:
SC_MARGIN_SYMBOL = 0 // as now
SC_MARGIN_NUMBER = 1 // as now
SC_MARGIN_SPACER = 2 // STYLE_DEFAULT background
SC_MARGIN_LINERIGHT = 4 // draw line on right of margin
etc
Sticking the first flag just after an enumeration is rather
constraining. For the line, I would have defined another type like
SC_MARGIN_SPACER and filled that margin with a line drawing colour
(probably STYLE_DEFAULT.fore). Then the client code may define light,
dark, or grey lines or areas independently. If there are flags then it
should be at, say, 16 or 32 to allow expansion of the enumeration
part.
Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest