F > FListBox.setAutoHideScrollBar |
![]() ![]() ![]() |
FListBox.setAutoHideScrollBar
Availability
Flash Player 6.
Usage
myListBox
.setAutoHideScrollBar(
hideScroll
)
Parameters
hideScroll
A Boolean value specifying whether the scroll bar is hidden when not needed (true
) or always displayed (false
).
Returns
Nothing.
Description
Method; specifies whether the scroll bar is hidden when the number of items in the list box can be viewed without a scroll bar (true
) or whether the scroll bar is always displayed (false
). If this method is set to false
and the number of items does not require a scroll bar, the scroll bar is displayed as disabled (dimmed).
Example
The following code hides the scroll bar for wishList
when the number of items in the list box can be viewed without scrolling.
wishList
.setAutoHideScrollBar(true);
![]() ![]() ![]() |