From 4ae76e455aec66826a284356d63cc2b5995c0b2f Mon Sep 17 00:00:00 2001 From: Tse Kit Yam Date: Tue, 29 Nov 2016 14:14:21 +1100 Subject: Textual tags may be displayed on folded lines with SCI_TOGGLEFOLDSHOWTEXT. --- doc/ScintillaDoc.html | 57 ++++++++++++++++++++++++++++++++++++++++++----- doc/ScintillaHistory.html | 6 +++++ 2 files changed, 58 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 616bacaa7..53bf4e794 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -2697,15 +2697,21 @@ struct Sci_TextToFind { foreground and background colours and character set attributes are used. + + STYLE_FOLDDISPLAYTEXT + + 39 + + This is the style used for drawing text tags attached to folded text. + + STYLE_LASTPREDEFINED 39 To make it easier for client code to discover the range of styles that are - predefined, this is set to the style number of the last predefined style. This is - currently set to 39 and the last style with an identifier is 38, which reserves space - for one future predefined style. + predefined, this is set to the style number of the last predefined style. @@ -5668,6 +5674,8 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ SCI_GETFOLDEXPANDED(int line) → bool
SCI_CONTRACTEDFOLDNEXT(int lineStart) → int
SCI_TOGGLEFOLD(int line)
+ SCI_TOGGLEFOLDSHOWTEXT(int line, const char *text)
+ SCI_FOLDDISPLAYTEXTSETSTYLE(int style)
SCI_FOLDLINE(int line, int action)
SCI_FOLDCHILDREN(int line, int action)
SCI_FOLDALL(int action)
@@ -5819,10 +5827,49 @@ sptr_t CallScintilla(unsigned int iMessage, uptr_t wParam, sptr_t lParam){ inconsistent, the return value is -1.

SCI_TOGGLEFOLD(int line)
+ SCI_TOGGLEFOLDSHOWTEXT(int line, const char *text)
Each fold point may be either expanded, displaying all its child lines, or contracted, hiding - all the child lines. This message toggles the folding state of the given line as long as it has - the SC_FOLDLEVELHEADERFLAG set. This message takes care of folding or expanding + all the child lines. These messages toggle the folding state of the given line as long as it has + the SC_FOLDLEVELHEADERFLAG set. These messages take care of folding or expanding all the lines that depend on the line. The display updates after this message.

+

An optional text tag may be shown to the right of the folded text with the + text argument to + SCI_TOGGLEFOLDSHOWTEXT. + The text is drawn with the + STYLE_FOLDDISPLAYTEXT style.

+ +

SCI_FOLDDISPLAYTEXTSETSTYLE(int style)
+ This message changes the appearance of fold text tags.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SymbolValueEffect
SC_FOLDDISPLAYTEXT_HIDDEN0Do not display the text tags. This is the default.
SC_FOLDDISPLAYTEXT_STANDARD1Display the text tags.
SC_FOLDDISPLAYTEXT_BOXED2Display the text tags with a box drawn around them.

SCI_SETFOLDEXPANDED(int line, bool expanded)
SCI_GETFOLDEXPANDED(int line) → bool
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 34881de77..adfa4f278 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -547,6 +547,12 @@ Accessibility support allowing screen readers to work added on GTK+ and Cocoa.

  • + Textual tags may be displayed to the right on folded lines with SCI_TOGGLEFOLDSHOWTEXT. + This is commonly something like "{ ... }" or "<tr>...</tr>". + It is displayed with the STYLE_FOLDDISPLAYTEXT style and may have a box drawn around it + with SCI_FOLDDISPLAYTEXTSETSTYLE. +
  • +
  • INDIC_POINT and INDIC_POINTCHARACTER indicators added to display small arrows underneath positions or characters.
  • -- cgit v1.2.3