flex学习笔记 显示数字步进
2013-07-24 11:00
162 查看
<?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:Script> <![CDATA[ import mx.controls.Alert; public function showMsg(msg:String):void { mx.controls.Alert.show(msg); } ]]> </fx:Script> <s:Panel title="Profile" > <s:layout> <s:HorizontalLayout /> </s:layout> <s:VGroup> <s:Label fontWeight="bold" text="你有几个孩子阿"/> <s:NumericStepper id="Kids" minimum="0" maximum="10" change="showMsg(Kids.value.toString())"/> <s:HGroup> <s:Label fontWeight="bold" text="读大学的孩子呢"/> <s:Spinner minimum="0" maximum="10" id="collegeKids"/> <s:Label text="{collegeKids.value}个孩子读大学"/> </s:HGroup> <mx:HSlider id="commuteTimeRange" minimum="0" maximum="180" snapInterval="5" tickInterval="10" labels="[0min,180max]" thumbCount="2" change="showMsg(commuteTimeRange.value.toString())" /> </s:VGroup> <s:VGroup> <s:Label fontWeight="bold" text="你多高?(cm)"/> <mx:VSlider id="YourHeight" minimum="0" maximum="300" snapInterval="1" tickInterval="1" labels="[0,50,100,150,200,250,300]" change="showMsg(YourHeight.value.toString())"> </mx:VSlider> </s:VGroup> </s:Panel> </s:Application>
View Code
显示数字步进
数字步进无框
数字横竖滑条
![](http://images.cnitblog.com/blog/547025/201307/24110017-f596da2fe16a42a883b3dc92855f2d83.jpg)
相关文章推荐
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- flex学习笔记-日历选择与显示
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- flex 学习笔记 list显示不同字体
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- Flex学习笔记之图片显示策略
- flex学习笔记 使用函数,显示实时更新的标签
- Flex 学习笔记 自定义时间控件(带分秒时显示)
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- Flex学习笔记-自定义菜单的显示细节
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- Flex 学习笔记 Datagrid中创建自定义ComboBox控件及数字校验
- OAF学习笔记-15-大文本(过长,英文数字)在table 中换行显示
- 黑马程序员之WinForm编程基础学习笔记:用户在文本框1,2中输入两个数,点击按钮,在文本框3中显示从文本框1中的数字到文本框2中的数字之间的累加和。如果1或者2为错误的数据格式,则弹出对话框提示错