Scrolling and automatic scrolling ================================= .. method:: 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. .. seealso:: :meth:`~gtkscintilla.Scintilla.set_x_offset` .. method:: gtkscintilla.Scintilla.scroll_caret() 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. .. note:: Caret policy description has to be done. .. method:: gtkscintilla.Scintilla.set_h_scroll_bar(visible) .. method:: gtkscintilla.Scintilla.get_h_scroll_bar() The horizontal scroll bar is only displayed if it is needed for the assumed width. If you never wish to see it, call :meth:`~gtkscintilla.Scintilla.set_h_scroll_bar` (0). Use :meth:`~gtkscintilla.Scintilla.set_h_scroll_bar` (1) to enable it again. :meth:`~gtkscintilla.Scintilla.get_h_scroll_bar` returns the current state. The default state is to display it when needed. .. seealso:: :meth:`~gtkscintilla.Scintilla.set_scroll_width` . .. method:: gtkscintilla.Scintilla.set_v_scroll_bar(visible) .. method:: gtkscintilla.Scintilla.get_v_scroll_bar() By default, the vertical scroll bar is always displayed when required. You can choose to hide or show it with :meth:`~gtkscintilla.Scintilla.set_v_scroll_bar` True or False and get the current state with :meth:`~gtkscintilla.Scintilla.get_v_scroll_bar` . .. method:: gtkscintilla.Scintilla.set_x_offset(xOffset) .. method:: gtkscintilla.Scintilla.get_x_offset() 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:: :meth:`~gtkscintilla.Scintilla.line_scroll` .. method:: gtkscintilla.Scintilla.set_scroll_width(pixelWidth) .. method:: gtkscintilla.Scintilla.set_scroll_width() 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 :meth:`~gtkscintilla.Scintilla.set_scroll_width_tracking` .. method:: gtkscintilla.Scintilla.set_scroll_width_tracking(tracking) .. method:: gtkscintilla.Scintilla.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. .. method:: gtkscintilla.Scintilla.set_end_at_last_line(endAtLastLine) .. method:: gtkscintilla.Scintilla.set_end_at_last_line() 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.