首页» FLEX »FLEX例子之应用程序控制条(ApplicationControlBar)

FLEX例子之应用程序控制条(ApplicationControlBar)

立即注册PayPal并开始接受信用卡付款。
转载请保持文章完整性!
本文链接地址:http://blog.desizen.com/4lone/605.html
主页:joel's blog

这个例子进行的是:Containers:
简介:
The container holds components that provide global navigation and application commands.
例子:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top"
    horizontalAlign="center" backgroundGradientColors="[0x000000,0x323232]" paddingTop="10" height="246" verticalScrollPolicy="off" viewSourceURL="srcview/index.html">
 
    <mx:Style>
        ApplicationControlBar{
            backgroundColor:#ACACAC;
            color: #323232;
        }
    </mx:Style>
    <mx:ApplicationControlBar dock="true" paddingTop="0" paddingBottom="0"  >
        <mx:Label text="Docked" fontWeight="bold" color="0x000000"/>
 
        <mx:MenuBar id="myMenuBar" labelField="@label">
            <mx:XMLList>
                <menuitem label="MenuItem A" >
                    <menuitem label="SubMenuItem A-1" type="check"/>
                    <menuitem label="SubMenuItem A-2" type="check"/>
                </menuitem>
                <menuitem label="MenuItem B"/>
                <menuitem label="MenuItem C"/>
                <menuitem label="MenuItem D" >
                    <menuitem label="SubMenuItem D-1" type="radio" groupName="one"/>
                    <menuitem label="SubMenuItem D-2" type="radio" groupName="one"/>
                    <menuitem label="SubMenuItem D-3" type="radio" groupName="one"/>
                </menuitem>
            </mx:XMLList>
        </mx:MenuBar>
    </mx:ApplicationControlBar>
 
    <mx:Label color="0xACACAC" text="A docked ApplicationControlBar appears at the top of the application window."/>
    <mx:Spacer height="100%" />
 
    <mx:ApplicationControlBar width="80%">
        <mx:Label text="Normal" fontWeight="bold" color="0x000000"/>
        <mx:Label text="Search:" color="0x323232" />
        <mx:TextInput width="100%" maxWidth="200" />
        <mx:Spacer width="100%" />
        <mx:Button label="Go adobe.com" color="0x000000" />
    </mx:ApplicationControlBar>
 
    <mx:Label color="0xACACAC" text="A normal ApplicationControlBar can appear anywhere in the application."/>
 
</mx:Application>

标签:, , ,

与"FLEX例子之应用程序控制条(ApplicationControlBar)"相关的文章:

一条评论 »

  1.  azan Says:

    請問ApplicationControlBar如果使用dock=”true”屬性,才有辦法讓他吸附在畫面最上方,但是當視窗的寬度不夠,而出現捲軸時,有辦法讓ApplicationControlBar也能夠跟著內容一樣可以向右捲動嗎?
    謝謝

留下评论

emoticons

Feedback Form