v5_01テキストコントロールの使用

2795 ワード

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:
Control
Component set
Superclass
Multi Line
Editable
textFlow/text/textDisplay
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
3つのテキストベース
Label   RichEditableText   RichText
 
Label:3つのベースコントロールの中で最も軽量級で、最も完璧な使い方はボタンコントロールの中で文字数が制限されているラベルです.
<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"/>