颜色拾取器
<?xml version="1.0"?>
<!-- Simple example to demonstrate the ColorPicker control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
??? <mx:Panel title="ColorPicker Control Example" height="75%" width="75%"
??????? paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
???????
??????? <mx:Label width="100%" color="blue"
?????????? text="Select the background color of the VBox container."/>
??????? <mx:ColorPicker id="cp" showTextField="true" selectedColor="0xFFFFFF"/>?// 控件
????
??????? <mx:VBox width="100%" height="100%" backgroundColor="{cp.selectedColor}" borderStyle="solid"/>?//?顏色改變區(qū)域
??????? <mx:Label color="blue" text="selectedColor: 0x{cp.selectedColor.toString(16)}"/> //顯示選中顏色的值
??? </mx:Panel>
</mx:Application>
轉(zhuǎn)載于:https://www.cnblogs.com/yqlwl66/archive/2012/12/25/2832257.html
總結(jié)
- 上一篇: CentOS 7 Apache服务的安装
- 下一篇: Golang tcp转发 remoteA