v5_01 Introducing the text controls 使用文本控件
?
ex5_01
这部分主要讲
如何使用Spark的文本控件,样式和皮肤来改善你的程序的外观和风格
?
About the Spark text controls
You use Flex text-based controls to display text and to let users enter text into your application.
The following table lists the Flex text-based controls:
Label |
Spark |
UIComponent |
Y |
N |
text |
RichEditableText |
Spark |
UIComponent |
Y |
Y |
textFlow/text |
RichText |
Spark |
UIComponent |
Y |
N |
textFlow/text |
TextArea |
Spark |
UIComponent |
Y |
Y |
textFlow/text |
TextInput |
Spark |
UIComponent |
N |
Y |
text/textDisplay (textFlow) |
?
输入文本控件
TextArea? TextInput
三个文本基元
Label? RichEditableText?RichText
?
Label:三个基元控件中最轻量级的,最完美的用法就是作为按钮控件中字数受限的标签
<s:Label text="Monday, August 17th, 2009, 7:30pm" height="22" y="36" right="106" left="376" backgroundColor="#686868" color="#FFFFFF" textAlign="right" verticalAlign="middle" paddingRight="15"/>??