Developer   API   Native User Interface   ScrollView

  •  Config(0)
  •  Properties(14)
  •  Methods(13)
  •  Events(9)

ScrollView(native)

This class defines controls, which are components with visual representation.

Properties

  • dockContnet : Symbol
  • focusable : Boolean
    Ability to have a focus.
  • height : Integer
    Height of the object (in pixels).
  • isScrolling : Boolean
    Returns true if scroll is in progress.
  • layout : Integer
    StackLayout used to organize elements into the object.
  • left : Integer
    X - coordinates of left border.
  • name : String
    Name of the object.
  • scrollMode : Symbol
  • scrollX : Integer
    Gets horizontal scroll.
  • scrollY : Integer
    Gets verical scroll.
  • stretch : Symbol
    Gets or sets if the view's width is stretchable.
  • top : Integer
    Y - coordinates of top border.
  • visible : Boolean
    Visibility of the object. True = visible, false = invisible. Default is visible.
  • width : Integer
    Width of the object (in pixels).

Methods

  • add(view [, order]) : ScrollView
    Function adds existing view object into ScrollView.
  • getChildrenBounds() : Multivalue
  • getChildrenSize() : Multivalue
  • setFocus() : Boolean
    Returns true if ScrollView has focus. Otherwise, function returns false.
  • invalidate([left, top, right, bottom]) : ScrollView
    This function ensure redrawing a rectangle, determined by parameters. If no parameters are set, whole object will be redraw. Redrawing manages the function, which is set to onDraw event.
  • performLayout() : Window
    Perform (force) layer calculation.
  • removeAll() : ScrollView
    Removes all views from the object.
  • resumeLayout() : Window
    Resume layer's recalculating.
  • scrollBy(dx, dy) : ScrollView
    Function scrolls elements to coordinates (dx and dy). However, this function scrolls only in adjusted set scroll mode (horizontal or vertical).
  • scrollTo(x, y) : ScrollView
    Function scrolls elements to coordinates (dx and dy). However, this function scrolls only in adjusted set scroll mode (horizontal or vertical).
  • setFocus() : Boolean
    Function sets focus to the object.
  • suspendLayout() : Window
    Pause layer's recalculating. This function is useful when a lot of items are inserted into view in short time. When resumeLayout is called, all items will be inserted at once .
  • this(name = null) : ScrollView
    Create new ScrollView object.

Events

  • onChar(sender, charCode)
    This event is raised by release an UNICODE character key.
  • onDraw(sender, canvas)
    This event occurs, when it is necessary to redraw object. onDraw event is usually managed by skin.
  • onKeyPressed(sender, key)
    This event is raised by press the key.
  • onKeyReleased(sender, key)
    This event is raised by release the key.
  • onPointerDragged(sender, x, y)
    Called when touch (click) is moved.
  • onPointerPressed(sender, x, y)
    Called when touch (click) is stared.
  • onPointerReleased(sender, x, y)
    Called when touch (click) is finished.
  • onProcess()
    Callback function, which is which is called from the object every 25ms.
  • onResize(sender, width, height)
    Occurs when the control is resized.