From e8f134e9a1567775377c66c8bd34825380c328a6 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 29 Jul 2021 13:12:16 +1000 Subject: Add SC_ELEMENT_HIDDEN_LINE to show where lines are hidden. --- doc/ScintillaDoc.html | 13 +++++++++++++ doc/ScintillaHistory.html | 1 + 2 files changed, 14 insertions(+) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 511632937..b38cfb83c 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3504,6 +3504,14 @@ struct Sci_TextToFind { Colour of fold lines + + SC_ELEMENT_HIDDEN_LINE + 81 + Translucent + All + + Colour of line drawn to show there are lines hidden at that point + @@ -7008,6 +7016,7 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ SCI_DOCLINEFROMVISIBLE(line displayLine) → line
SCI_SHOWLINES(line lineStart, line lineEnd)
SCI_HIDELINES(line lineStart, line lineEnd)
+ SC_ELEMENT_HIDDEN_LINE : colouralpha
SCI_GETLINEVISIBLE(line line) → bool
SCI_GETALLLINESVISIBLE → bool
SCI_SETFOLDLEVEL(line line, int level)
@@ -7059,10 +7068,14 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){

SCI_SHOWLINES(line lineStart, line lineEnd)
SCI_HIDELINES(line lineStart, line lineEnd)
+ SC_ELEMENT_HIDDEN_LINE : colouralpha
SCI_GETLINEVISIBLE(line line) → bool
SCI_GETALLLINESVISIBLE → bool
The first two messages mark a range of lines as visible or invisible and then redraw the display. + If SC_ELEMENT_HIDDEN_LINE + is set then a horizontal line is drawn in that colour to indicate that there are hidden lines. + A fold line drawn in that position overrides the hidden line indicator. SCI_GETLINEVISIBLE reports on the visible state of a line and returns 1 if it is visible and 0 if it is not visible. SCI_GETALLLINESVISIBLE returns 1 if all lines are visible and 0 diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index f0c6ded0b..21f44f476 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -576,6 +576,7 @@

  • Add SC_ELEMENT_FOLD_LINE to set the colour of fold lines. + Add SC_ELEMENT_HIDDEN_LINE to show where lines are hidden.
  • Fix display of fold lines when wrapped so they are only drawn once per line, not on each subline. -- cgit v1.2.3