Flex Gumbo中如何通过lineThrough样式设置TextInput删除线的例子
By Minidxer | August 18, 2009
接下来的例子演示了Flex Gumbo中如何通过lineThrough样式,设置TextInput删除线。
下面是完整代码(或点击这里察看):
下面是main.mxml:
- <?xml version="1.0" encoding="utf-8"?>
- <s:Application name="Spark_TextInput_lineThrough_test"
- xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/halo">
- <s:CheckBox id="checkBox"
- label="lineThrough"
- selected="true"
- left="10"
- top="10" />
- <s:TextInput id="textInput"
- text="The quick brown fox jumps over the lazy dog."
- lineThrough="{checkBox.selected}"
- horizontalCenter="0"
- verticalCenter="0" />
- </s:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
Gumbo, TextInput |
No Comments » |
Tags: Gumbo, lineThrough