aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2016-09-29 13:33:35 +1000
committerNeil <nyamatongwe@gmail.com>2016-09-29 13:33:35 +1000
commitcfe3c049555422cbc7dcf3fd2fadad2f08487dd7 (patch)
treef7065c237f0352276b3345c111542af3b267ed26 /src/Editor.cxx
parent1648497785a6344df6c313697925c009c8d1acad (diff)
downloadscintilla-mirror-cfe3c049555422cbc7dcf3fd2fadad2f08487dd7.tar.gz
Margin type SC_MARGIN_COLOUR and API SCI_SETMARGINBACKN added.
Allows choosing any colour for a margin.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index ee4d3947f..0e686e101 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -6884,6 +6884,19 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
else
return 0;
+ case SCI_SETMARGINBACKN:
+ if (ValidMargin(wParam)) {
+ vs.ms[wParam].back = ColourDesired(static_cast<long>(lParam));
+ InvalidateStyleRedraw();
+ }
+ break;
+
+ case SCI_GETMARGINBACKN:
+ if (ValidMargin(wParam))
+ return vs.ms[wParam].back.AsLong();
+ else
+ return 0;
+
case SCI_STYLECLEARALL:
vs.ClearStyles();
InvalidateStyleRedraw();