BrowserScroller

Description

An IScroller implemention for a typical webpage in a webbrowser.

FileDialog Class

Namespace: Progile.TRIO.EnvironmentModel.WebBrowser Assembly: Progile.TRIO.EnvironmentModel.Windows (in Progile.TRIO.EnvironmentModel.Windows.dll)

Inheritance Hierarchy:

Object Progile.TRIO.EnvironmentModel.WebBrowser.BrowserScroller

Constructors

Creates a new instance of a BrowserScroller that is displayed in the provided searchRectangle. If the scroller is in a subview (e.g. table, dropdown), you may need to set needsFocus to true, to always click in the scroller before using it.

Syntax:

public BrowserScroller(
	ITester tester,
	Select searchRectangle,
	BrowserType browser,
	bool needsFocus = false
)

Parameter

Description

t

Type: ITester

The tester interface.

searchRectangle

Type: Select

The select filter that is used to find the scroller, but also to check for updates when scrolling. So it should contain both the scroller and the scrollable content.

browser

Type: Progile.TRIO.EnvironmentModel.BrowserType

The type of browser. Required because there are some differences in how the scrollers behave in the different browsers.

[needsFocus]

Type: Boolean

Whether or not the scroller needs to be focused before it can be interacted with using keyboard shortcuts (e.g. End, PageUp, etc) or the scrollwheel.

Methods

Name

Description

Resets the state of the scroller to Unknown. Should be called when the content is scrolled without interacting with the IScroller (e.g. adding new items to a list). Ensures on next interaction the scroller checks the state.

Scrolls down by the smallest increment, to show the next line of the scrollable content. Typically by clicking once on the scroll down button.

Scrolls up by the smallest increment, to show the previous line of the scrollable content. Typically by clicking once on the scroll up button.

Scrolls down by a larger amount, to show the next page of the scrollable content. Typically by clicking PageDown Key or by clicking just above the scroll down button.

Scrolls up by a larger amount, to show the previous page of the scrollable content. Typically by clicking PageUp Key or by clicking just below the scroll up button.

Scrolls all the way to the bottom of the scrollable content. IsAtBottom should be true after this.

Scrolls all the way to the top of the scrollable content. IsAtTop should be true after this.

Scrolls down using the Mouse.ScrollWheel which typically moves the scrollable content by three lines.

Scrolls up using the Mouse.ScrollWheel which typically moves the scrollable content by three lines.

Properties

Name

Description

The button to scroll down.

Determines whether the scroller is active, meaning that the content can be scrolled.

Determines whether the scrollbar is at the bottom, meaning the content is scrolled to the end.

Determines whether the scrollbar is at the top, meaning the content is scrolled to the beginning.

Gets or sets the search select filter with which the scroller elements can be found.

The button to scroll up.

Last updated