Scroll

Overview

Creates a Container that allows its child controls to overflow out of its height and width where the user can scroll left, right, up or down to specific controls.

Ancestors

  1. Control
  2. Container
 

Descendants

  1. None
 

See Also

  1. None

Constructors

new Scroll
Description

Creates a new scroll container.

Definition

new Scroll()

Members

backgroundColor
Description

Gets or sets the background color of the container. See the Color class for more information.

Definition

Color scroll.backgroundColor
border
Description

Gets or sets the border type for the scroll window. This can be one of the following values "none", "line", "normal" or "concave". The default is "normal".

Definition

string scroll.border (default "normal")
horizontal
Description

Gets or sets whether the scroll has a horizontal scrollbar (and can scroll horizontally). The default is true.

Definition

boolean scroll.horizontal (default true)
speed
Description

Gets or sets the speed of the scrolling by unit of lines.

Definition

number scroll.speed (default 1)
vertical
Description

Gets or sets whether the scroll has a vertical scrollbar (and can scroll vertically). The default is true. Note a scrollbar may not appear if the content does not push outside the bounds of the scroll view.

Definition

boolean scroll.vertical (default true)

Methods

setChild(control)
Description

Sets the child control that will be scrollable, if multiple children are needed create a generic Box or Container control to append multiple children.

Definition

scroll.setChild(control)
Parameters
NameTypeDescription
control Control The control to set as the child