Re: SCI_SETMARGINLEFT and SC_MARK_BACKGROUND

"'Sam Ransbotham' via scintilla-interest" <[email protected]> Sat, 1 Mar 2025 14:03:10 -0500
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
> On Mar 1, 2025, at 04:39, 'Neil Hodgson' via scintilla-interest <[email protected]> wrote:
> 
> Sam Ransbotham:
> 
>> But the blank margin set with SCI_SETMARGINLEFT seems to remain in the normal color, not the SC_MARK_BACKGROUND color.  What controls the color of the blank margin part?
> 
>   The left and right margins are drawn in the background colour for STYLE_DEFAULT.

Thanks. Since there is only a single STYLE_DEFAULT, am I correct that this means the background color of the SCI_SETMARGINLEFT cannot change by line?

For example, this example sets the SCI_SETMARGINLEFT to 20 and uses a marker (SC_MARK_BACKGROUND) to change every other line to a yellow background.  The SCI_SETMARGINLEFT background remains in the default background color (set by STYLE_DEFAULT) instead of using the SC_MARK_MARKBACKGROUND style. I expected that the background of the whole line would change (including the SCI_SETMARGINLEFT  part).

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/C2CEC346-5984-4DEB-A02A-377E244C2D85%40bc.edu.


> 
>   Neil
> 

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/C2CEC346-5984-4DEB-A02A-377E244C2D85%40bc.edu.
PastedGraphic-1.png (image/png, 94 KB) - not displayed