本文主要是介绍设置FormItem容器排布方向,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
- <? xml version = " 1.0 " encoding = " utf-8 " ?>
- < mx : Application xmlns : mx = " http://www.adobe.com/2006/mxml "
- layout = " vertical "
- verticalAlign = " middle "
- backgroundColor = " white " >
- < mx : Style >
- FormItem {
- labelStyleName : myFormItemLabelStyleName ;
- }
- . myFormItemLabelStyleName {
- fontWeight : bold ;
- }
- < / mx:Style>
- <mx:Form id="form">
- <mx:FormItem label="horizontal:"
- direction="horizontal">
- <mx:Image source="{Icons.AIR_ICON}"
- toolTip="Adobe AIR" / >
- < mx : Image source = " {Icons.FLASH_ICON} "
- toolTip = " Adobe Flash " / >
- <mx:Image source="{Icons.FLASH_PLAYER_ICON}"
- toolTip="Adobe Flash Player" / >
- < mx : Image source = " {Icons.FLEX_ICON} "
- toolTip = " Adobe Flex " / >
- < / mx : FormItem >
- < mx : FormItem label = " vertical: "
- direction = " vertical " >
- < mx : Image source = " {Icons.AIR_ICON} "
- toolTip = " Adobe AIR " / >
- <mx:Image source="{Icons.FLASH_ICON}"
- toolTip="Adobe Flash" / >
- < mx : Image source = " {Icons.FLASH_PLAYER_ICON} "
- toolTip = " Adobe Flash Player " / >
- <mx:Image source="{Icons.FLEX_ICON}"
- toolTip="Adobe Flex" / >
- < / mx:FormItem>
- < / mx : Form >
- < / mx:Application>
Download: Icons.as
- package {
- [ Bindable ]
- public class Icons {
- public function Icons () {
- }
- [ Embed ( " assets/air_appicon-tn.gif " )]
- public static var AIR_ICON : Class ;
- [ Embed ( " assets/fl_appicon-tn.gif " )]
- public static var FLASH_ICON : Class ;
- [ Embed ( " assets/fl_player_appicon-tn.gif " )]
- public static var FLASH_PLAYER_ICON : Class ;
- [ Embed ( " assets/fx_appicon-tn.gif " )]
- public static var FLEX_ICON : Class ;
- }
- }
这篇关于设置FormItem容器排布方向的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!