改变HSlider上标记的宽度.

tickThickness属性。
示例:


代码:

 

<? xml version="1.0" encoding="utf-8" ?>
<!--  http://blog.flexexamples.com/2008/05/06/setting-the-tick-thickness-on-a-slider-control-in-flex/  -->
< mx:Application  xmlns:mx ="http://www.adobe.com/2006/mxml"
        layout
="vertical"
        verticalAlign
="middle"
        backgroundColor
="white" >

    
< mx:Form >
        
< mx:FormItem  label ="tickThickness:" >
            
< mx:HSlider  id ="slider"
                    minimum
="1"
                    maximum
="4"
                    liveDragging
="true"
                    snapInterval
="1"
                    tickInterval
="1"
                    tickThickness
=" {slider.value} "    />
        
</ mx:FormItem >
    
</ mx:Form >

</ mx:Application >


http://blog.flexexamples.com/2008/05/06/setting-the-tick-thickness-on-a-slider-control-in-flex/

你可能感兴趣的:(slider)