Scrolling and automatic scrolling

gtkscintilla.Scintilla.line_scroll(column, 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 upwards as far as the user is concerned), Negative line values do the reverse.

The column measure is the width of a space in the default style. Positive values increase the column at the left edge of the view (i.e. they move the text leftwards as far as the user is concerned). Negative values do the reverse.

See also



If the current position (this is the caret if there is no selection) is not visible, the view is scrolled to make it visible according to the current caret policy.


Caret policy description has to be done.


The horizontal scroll bar is only displayed if it is needed for the assumed width. If you never wish to see it, call set_h_scroll_bar() (0). Use set_h_scroll_bar() (1) to enable it again. get_h_scroll_bar() returns the current state. The default state is to display it when needed.

See also

set_scroll_width() .

By default, the vertical scroll bar is always displayed when required. You can choose to hide or show it with set_v_scroll_bar() True or False and get the current state with get_v_scroll_bar() .
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.
For performance, Scintilla does not measure the display width of the document to determine the properties of the horizontal scroll bar. Instead, an assumed width is used. These messages set and get the document width in pixels assumed by Scintilla. The default value is 2000. To ensure the width of the currently visible lines can be scrolled use set_scroll_width_tracking()
If scroll width tracking is enabled then the scroll width is adjusted to ensure that all of the lines currently displayed can be completely scrolled. This mode never adjusts the scroll width to be narrower.
Sets the scroll range so that maximum scroll position has the last line at the bottom of the view (default). Setting this to false allows scrolling one page below the last line.

Previous topic

Long lines

Next topic

Style definition

This Page