1 Reply Latest reply on Aug 31, 2009 10:41 PM by babo_ya

    Tabs navigator in TitleWindow

    Abbas AB

      Hi i am using the tabNvigator in the title window but its not working properly means when i click anyother tab it does not show that's tab related container. Its code is like this

       

       

      <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="700" height="450">

       

      <mx:TabNavigator borderStyle="solid" >

       

              <mx:VBox label="Accounts"

                  width="300"

                  height="150">

                  <!-- Accounts view goes here. -->

              </mx:VBox>

       

              <mx:VBox label="Stocks"

                  width="300"

                  height="150">

                  <!-- Stocks view goes here. -->

              </mx:VBox>

       

              <mx:VBox label="Futures"

                  width="300"

                  height="150">

                  <!-- Futures view goes here. -->

              </mx:VBox>  

       

          </mx:TabNavigator>

      </mx:TitleWindow>

       

      Please if you know anything about it then let me know.

        • 1. Re: Tabs navigator in TitleWindow
          babo_ya Level 3

          Copied/pasted and works as expected..

           

          <?xml version="1.0" encoding="utf-8"?>

          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"

           

          >

           

              <mx:Script>

                  <![CDATA[

                      private function doSomething():void {               

                       //   ta1.styleName = "ItalicStyle";        

                       //   ta1.setFocus();

           

           

           

                  //        ta1.setSelection(0, 0);

                      }

                  ]]>

              </mx:Script>

              <mx:TitleWindow width="700" height="450">

           

          <mx:TabNavigator borderStyle="solid" >

           

                  <mx:VBox label="Accounts"

                      width="300"

                      height="150">

                      <mx:Label text="accoutns" />

                      <!-- Accounts view goes here. -->

                  </mx:VBox>

           

                  <mx:VBox label="Stocks"

                      width="300"

                      height="150">

                       <mx:Label text="stocks" />

                      <!-- Stocks view goes here. -->

                  </mx:VBox>

           

                  <mx:VBox label="Futures"

                      width="300"

                      height="150">

                       <mx:Label text="futures" />

                      <!-- Futures view goes here. -->

                  </mx:VBox> 

           

              </mx:TabNavigator>

          </mx:TitleWindow>

          </mx:Application>