tags:

views:

15

answers:

2

Hey guys,

I am new to Flex. I am trying to add a scroller in my main application/windows. Is that possible? I found out it is possible to add scoller bars in DataGrid, like horizontalScrollPolicy="on". How to implement it in containers like Group,Panel and etc?

Thanks

A: 

The answer differs between flex 4 (spark) components and flex 3 (halo) container components. For spark components such as Groups, you need to wrap your group in a Scroller component to get scrollbars to appear when all of the group's content cannot be viewed. Halo container components, such as Canvas, have built in support for scrollbars, meaning they should show up automatically when all of the canvas's content cannot be viewed. Hope that helps.

Wade Mueller
A: 

The Application tag also has horizontalScrollPolicy and verticalScrollPolicy properties.

http://livedocs.adobe.com/flex/3/langref/mx/core/Container.html#horizontalScrollPolicy http://livedocs.adobe.com/flex/3/langref/mx/core/Container.html#verticalScrollPolicy

In the Spark architecture, you want to look at the Scroller class. This is a good tutorial:

http://www.adobe.com/devnet/flex/articles/flex4_viewport_scrolling.html

www.Flextras.com