2 Replies Latest reply on Jun 6, 2008 1:43 AM by Muthu_cool

    Menu Bar

    Muthu_cool Level 1
      Hi,
      I need to know how to use menu bar. I have inserted one vbox inside tht i hav placed a menu bar. I need to know how to add the content like Titles and subtitles. Plz reply.



      Thankyou

      Regards
      Muthu
        • 1. Re: Menu Bar
          charithao
          Hi,

          Here's a simple example from the Flex documentation.

          <?xml version="1.0"?>
          <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" >

          <!-- Define the menu; dataProvider is the default MenuBar property.
          Because this uses an XML data provider, specify the labelField and
          showRoot properties. -->
          <mx:MenuBar id="myMenuBar" labelField="@label">
          <mx:XMLList>
          <menuitem label="MenuItem A" >
          <menuitem label="SubMenuItem A-1" enabled="False"/>
          <menuitem label="SubMenuItem A-2"/>
          </menuitem>
          <menuitem label="MenuItem B" type="check" selected="true"/>
          <menuitem label="MenuItem C" type="check" selected="false"/>
          <menuitem label="MenuItem D" >
          <menuitem label="SubMenuItem D-1" type="radio" groupName="one"/>
          <menuitem label="SubMenuItem D-2" type="radio" groupName="one"
          selected="true"/>
          <menuitem label="SubMenuItem D-3" type="radio" groupName="one"/>
          </menuitem>
          </mx:XMLList>
          </mx:MenuBar>
          </mx:Application>
          • 2. Re: Menu Bar
            Muthu_cool Level 1
            Hi,
            Thanks. I need to know will this code will applicable for both VBox and HBox.


            Regards
            Muthu