Flex Gumbo中如何创建有滚动条Panel的例子
By Minidxer | August 28, 2009
接下来的例子演示了Flex Gumbo中如何创建有滚动条Panel。
下面是完整代码(或点击这里察看):
下面是main.mxml:
- <?xml version="1.0" encoding="utf-8"?>
- <s:Application name="Spark_Panel_Scroller_test"
- xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/halo">
- <s:Panel id="panel"
- title="Spark Panel title"
- horizontalCenter="0"
- verticalCenter="0"
- width="320"
- height="240">
- <s:Scroller width="100%" height="100%">
- <s:Group width="100%" height="100%">
- <s:VGroup left="20" right="20" top="20" bottom="20">
- <s:SimpleText text="DateChooser #1:" />
- <mx:DateChooser />
- <s:SimpleText text="DateChooser #2:" />
- <mx:DateChooser />
- <s:SimpleText text="DateChooser #3:" />
- <mx:DateChooser />
- </s:VGroup>
- </s:Group>
- </s:Scroller>
- </s:Panel>
- </s:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
Panel |
No Comments » |
Tags: Gumbo