ITeye博客

HRule组件

wss71104307 · 2009-07-30 13:42 · Flex · XML · Adobe · Markdown

HRule组件

 

  所属包: mx.controls

 

  用途:绘制一条水平直线。

 

  属性:

Characteristic Description Default size The default width is 100 pixels, default height is 2 pixels. By default, the HRule control is not resizable; set width and height to percentage values to enable resizing. strokeWidth 2 pixels. strokeColor 0xC4CCCC. shadowColor 0xEEEEEE.

 

例子:

 

<?xml version="1.0"?>
<!-- Simple example to demonstrate the HRule control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <!-- WipeLeft属于mx:effects -->
    <mx:WipeLeft id="myWL"/>

    <mx:Panel title="HRule Control Example" id="myPanel" 
        paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">

        <mx:HRule rollOverEffect="{myWL}" width="100%" strokeWidth="1" strokeColor="red"/>
        <mx:Label width="100%" color="blue" 
            text="Move mouse over HorizontalRule control to redraw it."/>

    </mx:Panel>
</mx:Application>
       

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。