小小菜鸟的web菜园子

web开发学习。好记性不如烂笔头。每天进步一点点!

导航

改变CheckBox选择框的边框三色和对勾的颜色.

iconColor和borderColor属性。
示例:


代码:
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/08/25/changing-a-checkbox-controls-icon-color-and-border-color/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout
="vertical"
        verticalAlign
="middle"
        backgroundColor
="white">

    
<mx:ApplicationControlBar dock="true">
        
<mx:Label text="iconColor:" />
        
<mx:ColorPicker id="iconCol" />

        
<mx:Spacer width="100" />

        
<mx:Label text="borderColor:" />
        
<mx:ColorPicker id="borderCol" />
    
</mx:ApplicationControlBar>

    
<mx:CheckBox selected="true"
            iconColor
="{iconCol.selectedColor}"
            borderColor
="{borderCol.selectedColor}"
            label
="The quick brown fox jumped over the lazy dog."
            width
="200"
            height
="120" />

</mx:Application>

posted on 2008-04-27 16:08  『小小菜鸟』  阅读(10121)  评论(0编辑  收藏  举报