Discussion:
Setting background color of a symbol margin
Paul K
2013-07-17 18:22:59 UTC
Permalink
Hi All,

I have three margins (line number, symbol, and folds). Whenever I set the
background color of the line number margin, it also changes the color of
the symbol margin: editor:StyleSetBackground(wxstc.wxSTC_STYLE_LINENUMBER,
wx.wxColour(0, 255, 0)). I don't see a separate style for symbol margins.

How do I set different background colors for line number and symbol
margins? Am I missing something obvious? Thank you.

Paul.
--
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 scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Neil Hodgson
2013-07-18 00:14:31 UTC
Permalink
I have three margins (line number, symbol, and folds). Whenever I set the background color of the line number margin, it also changes the color of the symbol margin: editor:StyleSetBackground(wxstc.wxSTC_STYLE_LINENUMBER, wx.wxColour(0, 255, 0)). I don't see a separate style for symbol margins.
There is no separate style for symbol margins.
How do I set different background colors for line number and symbol margins? Am I missing something obvious?
You can choose SC_MARGIN_BACK or SC_MARGIN_FORE to use colours from STYLE_DEFAULT.

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 scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Paul K
2013-07-18 21:04:32 UTC
Permalink
Post by Neil Hodgson
Post by Paul K
How do I set different background colors for line number and symbol
margins? Am I missing something obvious?
Post by Neil Hodgson
You can choose SC_MARGIN_BACK or SC_MARGIN_FORE to use colours from STYLE_DEFAULT.
Yes, I can use SetMarginType(1, wxstc.wxSTC_MARGIN_BACK) to set it to the
color from STYLE_DEFAULT, but it seems like I can't set it to anything else.

So, just to confirm there doesn't seem to be a way to set symbol margin
background to a color that doesn't match linenumber background OR current
STYLE_DEFAULT background.

Paul.
--
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 scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Continue reading on narkive:
Loading...