2010-01-13から1日間の記事一覧
Flex には、Spacer という空白(何も描画しない空間)を挿入する GUI コンポーネントが用意されている。リファレンスに書いてある通り、コンポーネントのレイアウトに役立ちます。コンポーネントの右寄せ・左寄せ・中央寄せのサンプル。 <mx:HBox width="100%" borderStyle="inset"> <mx:Spacer width="100%" /> <mx:Button label="ボタン" /> </mx:HBox> <mx:HBox width="100%" borderStyle="inset"> <mx:Button label="ボタン" /> </mx:button></mx:hbox>
var css:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ToolTip"); css.setStyle("fontSize", 20); 詳しいことは StyleManager クラスの使用 を参照。