Re: Setting background colour of the Line Number margin
Andrew Truckle <[email protected]>
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <[email protected]> |
My fault. I was calling StyleClearAll which was resetting it. On Thursday 25 April 2024 at 11:19:49 UTC+1 Andrew Truckle wrote: > I had a look at the Scintilla sources again, so I am now trying this: > > SetAStyle(static_cast<int>(Scintilla::StylesCommon::LineNumber), RGB(0, 0, > 0), RGB(211, 211, 211)); > > But it still does not work. > > On Thursday 25 April 2024 at 09:10:44 UTC+1 Andrew Truckle wrote: > >> Thanks. I can't seem to find the equivalent in the CScintillaCtrl >> wrapper. I tried: >> >> m_edit.SetMarginBackN(0, RGB(0, 255, 0)); >> >> On Wednesday 24 April 2024 at 23:25:14 UTC+1 Neil Hodgson wrote: >> >>> AJ: >>> >>> The line numbers margin is visible, but how do I change the background >>> colour to be subtly different to what it is now? At the moment it is the >>> same as my dialog background, where the control resides. >>> >>> >>> STYLE_LINENUMBER >>> >>> 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 on the web visit https://groups.google.com/d/msgid/scintilla-interest/468b2e9e-a8fe-4993-b31f-631b511d0670n%40googlegroups.com.