User Tools

Site Tools


scrollpane

ScrollPane

The ScrollPane element scrolls the text or image and allows the user to change the scrollbar location and set the path of image through the imageUrl attribute.


Characteristic

Definition
Type Interactive Display Object
Category Element
Scope Local
Position *
Parents Container
Children none
Gestures Drag and touchevents
Requirements none

Attribute

Type

Description
background_H object reference sets the horizontal background object
background_V object reference sets the vertical background object
bgColor number sets color of horizontal background
bgEllipseHeight number sets the ellipse height of horizontal background
bgEllipseWidth number sets the ellipse width of horizontal background
bgHeight number sets the height of horizontal background
bgLineStroke number sets the line stroke of horizontal background
bgOutlineColor number sets the outline color of horizontal background
bgWidth number sets the width of horizontal background
bgX number sets the X position of horizontal background
bgY number sets the Y position of vertical background
horizontal true/false flag for horizontal background
imageUrl text sets the image path
scrollbar_H object reference sets the horizontal scrollbar object
scrollbar_V object reference sets the vertical scrollbar object
scrollBarColor number sets the color of horizontal scrollbar
scrollbarWidth number sets the horizontal scrollbar width
scrollbarX number sets the X position of horizontal scrollbar
scrollbarY number sets the y position of horizontal scrollbar
scrollbarEllipseHeight number sets the ellipse height of horizontal scrollbar
scrollbarEllipseWidth number sets the ellipse of horizontal scrollbar
square object reference sets the square object
squareColor number sets the color of square
squareHeight number sets the height of square
squareWidth number sets the width of square
squareOutlineColor number sets the outline color of square
squareLineStroke number sets the line stroke of square
vertical true/false flag for vertical background
vBgHeight number sets the height of vertical background
vBgWidth number sets the width of vertical background
vBgX number sets the X position of vertical background
vBgY number sets the Y position of vertical background
vScrollbarWidth number sets the width of vertical scrollbar
vScrollbarHeight number sets the height of vertical background
vScrollbarX number sets the X position of vertical scrollbar
vScrollbarY number sets the Y position of vertical scrollbar

See Also: Display Attributes

<ScrollPane id="sp1" imageUrl="library/assets/demos/800px-Bi-crystal.jpg" horizontal="true" vertical="true" x="500" y="0" squareWidth="500" squareHeight="500" squareLineStroke="3" squareOutlineColor="0xCCCCCC" squareColor="0x909090" bgOutlineColor="0x383838" bgColor="0x383838" bgLineStroke="3" bgX="0" bgY="505" bgWidth="500" bgHeight="15" bgEllipseWidth="20" bgEllipseHeight="30" verticalBgOutlineColor="0x383838" verticalBgColor="0x383838" verticalBgLineStroke="3" vBgX="505" vBgY="0" vBgWidth="15" vBgHeight="500" vBgEllipseWidth="30" vBgEllipseHeight="20" scrollBarColor="0x4E387E" scrollBarOutlineColor="0x4E387E" scrollBarLineStroke="3" scrollbarX="0" scrollbarY="505" scrollbarWidth="100" scrollbarHeight="15" scrollbarEllipseWidth="20" scrollbarEllipseHeight="30" verticalScrollBarColor="0x4E387E" verticalScrollBarOutlineColor="0x4E387E" verticalScrollbarLineStroke="3" vScrollbarX="505" vScrollbarY="0" vScrollbarWidth="15" vScrollbarHeight="100" vScrollbarEllipseWidth="30" vScrollbarEllipseHeight="20"/>
scrollpane.txt · Last modified: 2015/09/18 16:59 by glass