[Flex] ButtonBar系列——flex3 ButtonBar样式之颜色的填充
2024-09-27 03:06:54
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white"> <mx:Style>
.allButtons2 {
/* Creates a gradient from red/orange when button is in the
"out" state. */
fillColors: red, haloOrange;
} .allButtons4 {
/* Creates a gradient from red/orange when button is in the
"out" state. Creates a gradient from green/blue when
button is in the "over" state. */
fillColors: red, haloOrange, haloGreen, haloBlue;
} .allButtonsSolid {
fillColors: red, red;
} .allButtonsSolidOpaque {
fillAlphas: 1.0, 1.0;
fillColors: red, red;
}
</mx:Style> <mx:ViewStack id="viewStack"
visible="false"
includeInLayout="false">
<mx:VBox label="One">
<mx:Label text="One" />
</mx:VBox>
<mx:VBox label="Two">
<mx:Label text="Two" />
</mx:VBox>
<mx:VBox label="Three">
<mx:Label text="Three" />
</mx:VBox>
</mx:ViewStack> <mx:Form>
<mx:FormItem label="2 fill colors defined:">
<mx:ButtonBar id="buttonBar2"
buttonStyleName="allButtons2"
dataProvider="{viewStack}" />
</mx:FormItem>
<mx:FormItem label="4 fill colors defined:">
<mx:ButtonBar id="buttonBar4"
buttonStyleName="allButtons4"
dataProvider="{viewStack}" />
</mx:FormItem>
<mx:FormItem label="solid fill:">
<mx:ButtonBar id="buttonBarSolid"
buttonStyleName="allButtonsSolid"
dataProvider="{viewStack}" />
</mx:FormItem>
<mx:FormItem label="solid opaque fill:">
<mx:ButtonBar id="buttonBarSolidOpaque"
buttonStyleName="allButtonsSolidOpaque"
dataProvider="{viewStack}" />
</mx:FormItem>
</mx:Form> </mx:Application>
最新文章
- Intellij IDEA调试功能使用总结
- 微冷的雨ASP.NET MVC之葵花宝典(MVC)
- SQL日期格式,转自will哥
- XML解析方案
- 怎样在myEclipse中使用debug调试程序?
- [Socket网络编程]由于套接字没有连接并且(当使用一个 sendto 调用发送数据报套接字时)没有提供地址,发送或接收数据的请求没有被接受。
- [LeetCode]题解(python):030-Substring with Concatenation of All Words
- C# GetValueList 获得字符串中开始和结束字符串中间得值列表
- 《Ext JS 4.2 实战》可以买了
- pip使用国内源
- tensorflow 1.9 ,bazel 0.15.0,源码编ERROR, Skipping, &#39;//tensorflow/tools/pip_package:build_pip_package&#39;,error loading packageCuda Configuration Error, Cannot find libdevice.10.bc under /usr/local/cuda-8.0
- eclipse 如何安装freemaker ftl 插件
- hihocoder [Offer收割]编程练习赛14
- django安装命令
- linux下压缩与打包工具&mdash;&mdash;gzip, bzip2 和 tar;
- Java标准I/O流编程一览笔录
- 并发工具类(三)控制并发线程的数量 Semphore
- 2018.10.01 NOIP模拟 购买书籍(贪心+STL)
- zabbix系列之七——安装后配置二Userparameters
- Oracle日常性能查看
热门文章
- java中abstract
- opsview
- MySQL中Group By,distinct使用注意事项
- Javax.mail.NoSuchProviderException: smtp
- Lombok - 消除冗长的 java 代码
- VBA 插入一行保留样式
- [Hibernate] - Criteria Select
- SIlverlight外包公司【技术展望】— Silverlight5.1.2最新版本发布,Silverlight 的更新从未停止。
- LintCode ";Count of Smaller Number before itself";
- Maven 和 Ant 的区别?