From de17c9dce2f7b193cc4761f16909541fa85f73bc Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 8 May 2016 10:00:35 +1000 Subject: Moved text about FIRSTVISIBLELINE into scrolling section and moved XOFFSET text next to it, since these are related concepts. --- doc/ScintillaDoc.html | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 5edf0caec..c6929a370 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -82,7 +82,7 @@

Scintilla Documentation

-

Last edited 6 January 2016 NH

+

Last edited 8 May 2016 NH

There is an overview of the internal design of Scintilla.
@@ -1145,8 +1145,6 @@ struct Sci_TextToFind { SCI_GETTEXTLENGTH
SCI_GETLENGTH
SCI_GETLINECOUNT
- SCI_SETFIRSTVISIBLELINE(int lineDisplay)
- SCI_GETFIRSTVISIBLELINE
SCI_LINESONSCREEN
SCI_GETMODIFY
SCI_SETSEL(int anchorPos, int currentPos)
@@ -1214,11 +1212,6 @@ struct Sci_TextToFind { This returns the number of lines in the document. An empty document contains 1 line. A document holding only an end of line sequence has 2 lines.

-

SCI_SETFIRSTVISIBLELINE(int lineDisplay)
- SCI_GETFIRSTVISIBLELINE
- These messages retrieve and set the line number of the first visible line in the Scintilla view. The first line - in the document is numbered 0. The value is a visible line rather than a document line.

-

SCI_LINESONSCREEN
This returns the number of complete lines visible on the screen. With a constant line height, this is the vertical space available divided by the line separation. Unless you arrange to size @@ -1834,7 +1827,12 @@ struct Sci_TextToFind {

Scrolling and automatic scrolling

- SCI_LINESCROLL(int column, int line)
+ + SCI_SETFIRSTVISIBLELINE(int lineDisplay)
+ SCI_GETFIRSTVISIBLELINE
+ SCI_SETXOFFSET(int xOffset)
+ SCI_GETXOFFSET
+ SCI_LINESCROLL(int column, int line)
SCI_SCROLLCARET
SCI_SCROLLRANGE(int secondary, int primary)
SCI_SETXCARETPOLICY(int caretPolicy, int @@ -1847,8 +1845,6 @@ struct Sci_TextToFind { SCI_GETHSCROLLBAR
SCI_SETVSCROLLBAR(bool visible)
SCI_GETVSCROLLBAR
- SCI_GETXOFFSET
- SCI_SETXOFFSET(int xOffset)
SCI_SETSCROLLWIDTH(int pixelWidth)
SCI_GETSCROLLWIDTH
SCI_SETSCROLLWIDTHTRACKING(bool tracking)
@@ -1858,6 +1854,17 @@ struct Sci_TextToFind { SCI_GETENDATLASTLINE
+

SCI_SETFIRSTVISIBLELINE(int lineDisplay)
+ SCI_GETFIRSTVISIBLELINE
+ These messages retrieve and set the line number of the first visible line in the Scintilla view. The first line + in the document is numbered 0. The value is a visible line rather than a document line.

+ +

SCI_SETXOFFSET(int xOffset)
+ SCI_GETXOFFSET
+ The xOffset is the horizontal scroll position in pixels of the start of the text + view. A value of 0 is the normal position with the first text column visible at the left of the + view.

+

SCI_LINESCROLL(int column, int line)
This will attempt to scroll the display by the number of columns and lines that you specify. Positive line values increase the line number at the top of the screen (i.e. they move the text @@ -2154,12 +2161,6 @@ struct Sci_TextToFind { or show it with SCI_SETVSCROLLBAR and get the current state with SCI_GETVSCROLLBAR.

-

SCI_SETXOFFSET(int xOffset)
- SCI_GETXOFFSET
- The xOffset is the horizontal scroll position in pixels of the start of the text - view. A value of 0 is the normal position with the first text column visible at the left of the - view.

-

See also: SCI_LINESCROLL

SCI_SETSCROLLWIDTH(int pixelWidth)
-- cgit v1.2.3