Disable a menuitem : menuitem « Components « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Components » menuitemScreenshots 
Disable a menuitem
Disable a menuitem
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:MenuBar id="testMenuBar" labelField="@label">
        <mx:XMLList>
            <menuitem label="File" >
            <menuitem label="Save" enabled="False"/>
            <menuitem label="Open"/>
            </menuitem>
            <menuitem label="Auto Save" type="check" selected="true"/>
            <menuitem label="Doc" type="check" selected="false"/>
            <menuitem label="Type" >
            <menuitem label="Text" type="radio" groupName="group1"/>
            <menuitem label="Image" type="radio" groupName="group1" selected="true"/>
            <menuitem label="XML" type="radio" groupName="group1"/>
            </menuitem>
        </mx:XMLList>
    </mx:MenuBar>
</mx:Application>

   
  
Related examples in the same category
1.Select a radio button menu itemSelect a radio button menu item
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.