Phone API Reference - UI Classes (Widgets) - Scroll
Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70
Derived from a group widget. Automatically adds a scrollbar when its widgets overflow the box.
Class Constructor
new Scroll()
Construct a new Scroll object.
var scrollObj = new Scroll(x, y, width, height); |
Initialization Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
y | Yes | integer | Â | y coordinate value for top left corner. |
x | Yes | integer | Â | x coordinate value for top left corner. |
width | Yes | integer | Â | Width in pixels. |
height | Yes | integer | Â | Height in pixels. |
This Class inherits methods and properties from the Widget Base Class. See Widget Base Class  for more information about setting your Object's x, y, w, and h properties or adding children to it.
Methods
Properties
Name | Description |
---|---|
yPosition | Returns the current yPosition of the Scroll object. Note: this is not relative to the placement of the Scroll on the screen in anyway. Also can be used to set the y value of the scroll bar, causing it to scroll. Basic Example: //scroll down the Scroll Widget by 3 a factor of 3 LINE_HEIGHTS.
scrollObj.yPosition =(scrollObj.yPosition + (Text.LINE_HEIGHT * 3)); |
Â