Aug 27
前面的Flex中如何通过backgroundColor样式设置RichTextEditor控件内TextArea的背景颜色的例子中,我们了解了Flex中如何通过backgroundColor样式,设置RichTextEditor控件内TextArea的背景颜色。接下来的例子则演示了Flex中如何通过backgroundAlpha样式,设置RichTextEditor控件内TextArea的背景颜色透明度。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: backgroundAlpha, RichTextEditor, TextArea, textAreaStyleName, 背景颜色, 透明度
Aug 27
接下来的例子演示了Flex中如何通过backgroundColor样式,设置RichTextEditor控件内TextArea的背景颜色。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: backgroundColor, RichTextEditor, TextArea, textAreaStyleName, 背景颜色
Aug 19
接下来的例子演示了Flex中如何通过backgroundAlpha样式,设置TextArea控件背景颜色透明度。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: backgroundAlpha, TextArea, 背景颜色, 透明度
Aug 18
接下来的例子演示了Flex中如何通过backgroundDisabledColor样式,设置无效状态下TextArea控件背景颜色。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: backgroundDisabledColor, enabled, TextArea, 背景颜色
Aug 07
接下来的例子演示了Flex中如何通过selectable属性,控制用户是否可以对TextArea中的文本进行选中。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: selectable, TextArea
Aug 06
接下来的例子演示了Flex中如何通过describeType事件以及XMLListCollection,获取TextArea控件所有属性。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: describeType(), E4X, sort, SortField, TextArea, XMLListCollection
May 09
关于Flex的TextArea控件的例子,前面已经介绍了不少,包括设置该控件文本无效时的颜色,如何利用setSelection事件设定文本选中范围,如何利用htmlText属性以及condenseWhite属性紧缩HTML空格……等等,可以直接点TextArea Tag查看–WordPress的Tag功能,其实是非常不错。
接下来的例子,演示了Flex中如何利用getTextField事件和numLines属性,计算出TextArea控件中内容的行数。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: Flex, getTextField, mx_internal, numLines, TextArea
Apr 27
接下来的例子演示了Flex中如何通过设定TextArea控件的color和disabledColor样式,设定文本在有效,无效状态下的颜色。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: Color, disabledColor, enabled, Flex, StringUtil, TextArea, trim
Apr 26
接下来的例子演示了Flex的TextArea控件中,如何利用setSelection事件设定文本选中范围(移动下面Demo中的游标进行体验)。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: alwaysShowSelection, Flex, getTextField, setSelection, TextArea
Apr 25
在前面的Flex的TextArea控件中如何利用htmlText属性以及condenseWhite属性紧缩HTML空格的例子中,我们了解了如何通过设置htmlText和condenseWhite属性,在TextArea中将HTML的空格进行紧缩。接下来的例子则演示了在RichTextEditor中,如何利用htmlText和condenseWhite属性,紧缩HTML标签的空格。
让我们先来看一下Demo(可以右键View Source或点击这里察看源代码):
Continue reading »
written by Minidxer
| tags: condenseWhite, Flex, HTML, htmlText, RichTextEditor, TextArea