From cfe3c049555422cbc7dcf3fd2fadad2f08487dd7 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 29 Sep 2016 13:33:35 +1000 Subject: Margin type SC_MARGIN_COLOUR and API SCI_SETMARGINBACKN added. Allows choosing any colour for a margin. --- doc/ScintillaDoc.html | 12 ++++++++++-- doc/ScintillaHistory.html | 4 ++++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index b348a68b7..3ebf00919 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3172,6 +3172,8 @@ struct Sci_TextToFind { cursor)
SCI_GETMARGINCURSORN(int margin)
+ SCI_SETMARGINBACKN(int margin, int colour)
+ SCI_GETMARGINBACKN(int margin)
SCI_SETMARGINLEFT(<unused>, int pixels)
SCI_GETMARGINLEFT
@@ -3201,9 +3203,10 @@ struct Sci_TextToFind { A margin with application defined text may use SC_MARGIN_TEXT (4) or SC_MARGIN_RTEXT (5) to right justify the text. By convention, margin 0 is used for line numbers and the next two are used for symbols. You can - also use the constants SC_MARGIN_BACK (2) and SC_MARGIN_FORE (3) for + also use the constants SC_MARGIN_BACK (2), SC_MARGIN_FORE (3), + and SC_MARGIN_COLOUR (6) for symbol margins that set their background colour to match the STYLE_DEFAULT background and - foreground colours.

+ foreground colours or a specified colour.

SCI_SETMARGINWIDTHN(int margin, int pixelWidth)
SCI_GETMARGINWIDTHN(int margin)
@@ -3259,6 +3262,11 @@ struct Sci_TextToFind { reversed arrow with SCI_SETMARGINCURSORN(margin, SC_CURSORREVERSEARROW).

+

SCI_SETMARGINBACKN(int margin, int colour)
+ SCI_GETMARGINBACKN(int margin)
+ A margin of type SC_MARGIN_COLOUR + may have its colour set with SCI_SETMARGINBACKN.

+

SCI_SETMARGINLEFT(<unused>, int pixels)
SCI_GETMARGINLEFT
SCI_SETMARGINRIGHT(<unused>, int pixels)
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 16cad92ee..96de2872e 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -531,6 +531,10 @@ vertical edges simultaneously.

  • + Margin type SC_MARGIN_COLOUR added so that the application may + choose any colour for a margin with SCI_SETMARGINBACKN. +
  • +
  • On Win32, mouse wheel scrolling can be restricted to only occur when the mouse is within the window.
  • -- cgit v1.2.3