Direct Known Subclasses
The ScrollBar class is the base class for HScrollBar and VScrollBar controls. A ScrollBar control is a window with a title bar, caption and optional close button. The user can use the title bar to drag the window to a new location.
MXML Syntax
The <mx:ScrollBar> control defines the following properties:
<mx:ScrollBar
lineScrollSize="1"
maxPos="0"
minPos="0"
pageScrollSize="Reset to the pageSize parameter of setScrollProperties"
pageSize="0"
scrollPosition="0"
scroll="Event handler; no default."
/>
See Also
mx.controls.SimpleButton
mx.controls.scrollClasses.ScrollThumb
| Methods | |
| setScrollProperties(pSize:Number, mnPos:Number, mxPos:Number, ls:Number) : Void
Sets the range and viewport size for the ScrollBar. |
| Methods inherited from class mx.core.UIComponent |
getFocus
setFocus
getFocusManager
|
| Properties | |
| className:String
Name of this class. |
| scrollPosition:Number
[Read-Write]
Current scroll position. |
| pageScrollSize:Number
[Read-Write]
Amount to move when the track is pressed. |
| lineScrollSize:Number
[Read/Write]
Amount to move when an arrow button is pressed. |
| Properties inherited from class mx.core.UIComponent |
version
enabled
tabIndex
|
| Effects |
| Effects inherited from class mx.core.UIComponent |
showEffect
hideEffect
focusInEffect
focusOutEffect
|
| Effects inherited from class mx.core.UIObject |
creationCompleteEffect
moveEffect
resizeEffect
mouseDownEffect
mouseOverEffect
mouseOutEffect
mouseUpEffect
|
| Events |
| Events inherited from class: mx.core.UIComponent |
focusIn
focusOut
keyDown
keyUp
show
hide
valid
invalid
valueCommitted
|
| Styles |
| Styles inherited from class mx.core.UIObject |
color
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textDecoration
textIndent
marginLeft
marginRight
horizontalGap
verticalGap
|
| Method Detail |
setScrollProperties(pSize:Number, mnPos:Number, mxPos:Number, ls:Number) : Void
Parameters
pSize - Increment to move when the track is pressed.
mnPos - Bottom of the scrolling range.
mxPos - Top of the scrolling range.
ls - Increment to move when an arrow button is pressed.
| Property Detail |
className:String
lineScrollSize:Number
[Read/Write]
pageScrollSize:Number
[Read-Write]
scrollPosition:Number
[Read-Write]