FLEX4_group容器底下新增垂直button可捲軸範例
- <?xml version="1.0" encoding="utf-8"?>
- <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
- <fx:Declarations>
- <!-- Place non-visual elements (e.g., services, value objects) here -->
- </fx:Declarations>
- <s:Scroller x="463" y="102" width="105" height="113">//新增捲軸
- <s:Group x="512" y="298" width="105" height="102">
- <s:layout>
- <s:VerticalLayout/>//垂直顯示
- </s:layout>
- <s:Button x="116" y="47" label="1號"/>
- <s:Button x="216" y="47" label="2號"/>
- <s:Button x="316" y="47" label="3號"/>
- <s:Button x="416" y="47" label="4號"/>
- <s:Button x="516" y="47" label="5號"/>
- <s:Button x="716" y="47" label="6號"/>
- </s:Group>
- </s:Scroller>
- </s:Application>
執行結果:
留言
張貼留言