From ca6e6726ea248cc86dad9a3eddf649abe98add60 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 4 Feb 2015 08:04:06 +1100 Subject: Implement hover style and colour for indicators. --- doc/ScintillaDoc.html | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index dc9c006cf..ed3f23966 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -3900,8 +3900,12 @@ struct Sci_TextToFind { They can be used to show, for example, syntax errors, deprecated names and bad indentation by drawing underlines under text or boxes around text.

+

Indicators may have a different "hover" colour and style when the mouse is over them or the caret is moved into them. + This may be used, for example, to indicate that a URL can be clicked.

Indicators may be displayed as simple underlines, squiggly underlines, a - line of small 'T' shapes, a line of diagonal hatching, a strike-out or a rectangle around the text.

+ line of small 'T' shapes, a line of diagonal hatching, a strike-out or a rectangle around the text. + They may also be invisible when used to track pieces of content for the application as INDIC_HIDDEN.

The SCI_INDIC* messages allow you to get and set the visual appearance of the indicators. They all use an indicatorNumber argument in the range 0 to INDIC_MAX(35) @@ -3910,6 +3914,11 @@ struct Sci_TextToFind { (8=INDIC_CONTAINER .. 31=INDIC_IME-1) and a range for IME indicators (32=INDIC_IME .. 35=INDIC_IME_MAX).

+

Indicators are stored in a format similar to run length encoding which is efficient in both + speed and storage for sparse information.

+

An indicator may store different values for each range but currently all values are drawn the same. + In the future, it may be possible to draw different values in different styles.

+

Originally, Scintilla used a different technique for indicators but this has been removed and the APIs perform no action. @@ -3928,6 +3937,13 @@ struct Sci_TextToFind { SCI_INDICGETOUTLINEALPHA(int indicatorNumber)
SCI_INDICSETUNDER(int indicatorNumber, bool under)
SCI_INDICGETUNDER(int indicatorNumber)
+ SCI_INDICSETHOVERSTYLE(int indicatorNumber, int + indicatorStyle)
+ SCI_INDICGETHOVERSTYLE(int indicatorNumber)
+ SCI_INDICSETHOVERFORE(int indicatorNumber, int + colour)
+ SCI_INDICGETHOVERFORE(int indicatorNumber)
+
SCI_SETINDICATORCURRENT(int indicator)
SCI_GETINDICATORCURRENT
@@ -4150,10 +4166,18 @@ struct Sci_TextToFind { Drawing under text works only for indicators when two phase drawing is enabled.

-

Indicators are stored in a format similar to run length encoding which is efficient in both - speed and storage for sparse information.

-

An indicator may store different values for each range but currently all values are drawn the same. - In the future, it may be possible to draw different values in different styles.

+

SCI_INDICSETHOVERSTYLE(int indicatorNumber, int + indicatorStyle)
+ SCI_INDICGETHOVERSTYLE(int indicatorNumber)
+ SCI_INDICSETHOVERFORE(int indicatorNumber, int colour)
+ SCI_INDICGETHOVERFORE(int indicatorNumber)
+ These messages set and get the colour and style used to draw indicators when the mouse is over them or the caret moved into them. + The mouse cursor also changes when an indicator is drawn in hover style. + The default is for the hover appearance to be the same as the normal appearance and calling + SCI_INDICSETFORE or + SCI_INDICSETSTYLE will + also reset the hover attribute.

+

SCI_SETINDICATORCURRENT(int indicator)
SCI_GETINDICATORCURRENT
-- cgit v1.2.3