Hiding tabBar in tabNavigator

Hi All,
Does anyone know how to hide the tab bar up top on a flex tabnavigator component?  I don't want to see the tab bar at all and I don't need to click on it (I have an automated iterator through the tabs).
Thanks for any input!
Regards,
Joseph

Just use a viewStack.  tabNavigator is literally a viewStack with a tabBar added for navigation.

Similar Messages

  • Flash components in Flex

    I have built an interface in Flash CS3 and now have the need
    to port it over to Flex. I am trying to do it with as little
    re-build as possible, so I need to port the Flash components over
    with it. I exported a SWC with all of the components I am using,
    and added it to the Library Path of an AS project.
    The build gives me no errors, but I do get a #2007 at
    runtime. The error seems to be stemming from a Yahoo ASTRA Flash
    component, which was included in the SWC.
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/addChildAt()
    at fl.controls::BaseButton/drawBackground()
    at fl.controls::LabelButton/draw()
    at fl.controls::Button/draw()
    at
    com.yahoo.astra.fl.controls.tabBarClasses::TabButton/draw()
    at fl.core::UIComponent/drawNow()
    at com.yahoo.astra.fl.controls::TabBar/drawButtons()
    at com.yahoo.astra.fl.controls::TabBar/draw()
    at fl.core::UIComponent/callLaterDispatcher()
    I have been searching around the net, and the majority of
    people are saying that this happens when the skins aren't included
    (so you need to set them before the component is added to the
    stage). I am using customized programmatic skins, for which the
    source files are included in the build, and the styles get set
    before the component is added to the stage (I actually replaced the
    default ones in the class).
    Does anyone have any other ideas as to how I could fix this?
    PS - It is an ASTRA TabBar component that is giving me
    issues. I know that Flex has a TabBar and TabNavigator, but I can't
    find any documentation on how to use these from an AS project (no
    MXML). I will simply rebuild using the native Flex controls if
    necessary, and if possible, but would prefer to fix the issue as it
    currently stands. (I might go back to Flash at some point, and
    don't want to tie myself to a particular solution, considering I
    can't use Flex components in Flash).
    PPS - If you are wondering why I am porting to Flex right
    now, especially if I am considering taking it back to Flash in the
    future, it is because I have the need to begin building in
    FlashPlayer 10 functionality, and the only way you can build to
    FP10 right now (as its in beta) is with a nightly build of
    Flex.

    "rritchey" <[email protected]> wrote in
    message
    news:g8ua6d$qu6$[email protected]..
    > bump: Was I not clear in my question? Or does no-one
    know the answer?
    You might want to try in the flexCoders Yahoo! group.

  • Load speed: FLEX MX:TABNAVIGATOR LOAD SPEED VERSUS SPARK:TABBAR

    TODAY I NOTICED A LARGE DIFFERENCE BETWEEN
    THE OLDER MX:TABNAVIGATOR
    AND NEWER S:TABBAR (SPARK)
    Summary:
    My test application was built in flex builder 4 and I was using my localhost (asp.net devlepment enviroment) for testing.
    Tests I built:
    I built many proofs for concept using flex objects, ui  and data handlers.
    HOW WAS THIS TEST (which I spoke about in the title) CREATED:
    I built two components which will be used as CHILDREN to the main application.  The fist child component used the SPARK TABBAR and the other child component used the MX:TABNAVIGATOR.  The main application declared these children (using action script) initially and a List control actually loaded the children into the main application.
    BOTH CHILD COMPPONENTS had 10 tabs....
    5 of the 10 tabs contained "grand" child components (none of the components(main application/children/grandchildren) worked with external data)
    RESULTS:
    THE LOAD SPEED BETWEEN THE TWO CONTROLS was very noticable between the two controls.
    THE SPARK COMPONENT (S:tabbar) AVERAGED 3-5 SECONDS TO LOAD
    WHERE THE MX:TABNAVIGATOR ONLY TOOK 1-2 SECONDS
    HAS ANYBODY ELSE EXPERIENCED THE SAME RESULTS?
    THANKS,
    DOUG LUBY OF LOUISIANA
    WWW.douglubey.com
    SEARCH:  FLEX MX:TABNAVIGATOR LOAD SPEED VERSUS SPARK:TABBAR

    It definately seems to fit (pretty good).
    My labels in the "TABS" were of different length.
    So I converted them all to be the same length.
    <s:TabBar dataProvider="{viewstackSampleB}" id="sampleBMainTabBar"left="
    11" top="8" right="11" height="34" fontSize="6"/>
    <mx:ViewStack id="viewstackSampleB" cornerRadius="20" top="40" bottom="10" left="10" right="10">
    <s:NavigatorContent label="Profile___________________" width="100%" height="100%">
    <s:NavigatorContent left="0" top="0" right="0" bottom="0" backgroundColor="#000080">
    <sample:SampleB_Profile id="studentProfile" left="2" top="2" right="2" bottom="2"/>
    </s:NavigatorContent>
    </s:NavigatorContent>
    <s:NavigatorContent label="SampleB_DragNDrop1________" width="100%" height="100%">
    <s:NavigatorContent left="0" top="0" right="0" bottom="0" backgroundColor="#000080">
    <sample:SampleB_DragNDrop1 id="studentDragNDrop1" left="2" top="2" right="2" bottom="2"/>
    </s:NavigatorContent>  
    </s:NavigatorContent>
    <s:NavigatorContent label="SampleB_DragNDrop2________" width="100%" height="100%">
    <s:NavigatorContent left="0" top="-3" right="0" bottom="0" backgroundColor="#AEAEAE">
    <sample:SampleB_DragNDrop2 id="studentDragNDrop2" left="2" top="2" right="2" bottom="2"/>
    </s:NavigatorContent>  
    </s:NavigatorContent>  
    <s:NavigatorContent label="SampleB_PullDataFromParent" width="100%" height="100%">
    <s:NavigatorContent left="0" top="-3" right="0" bottom="0" backgroundColor="#AEAEAE">
    <sample:SampleB_PullingDataParent id="studentPullingDataParent" left="2" top="2" right="2" bottom="2"/>
    </s:NavigatorContent>  
    </s:NavigatorContent>  
    <s:NavigatorContent label="Tab Five__________________" width="100%" height="100%">
    <s:NavigatorContent left="0" top="-3" right="0" bottom="0" backgroundColor="#AEAEAE">
    </s:NavigatorContent>  
    </s:NavigatorContent>  
    <s:NavigatorContent label="Tab Six___________________" width="100%" height="100%">
    <s:NavigatorContent left="0" top="-3" right="0" bottom="0" backgroundColor="#AEAEAE">
    </s:NavigatorContent>  
    </s:NavigatorContent>  
    <s:NavigatorContent label="Tab Seven_________________" width="100%" height="100%">
    <s:NavigatorContent left="0" top="-3" right="0" bottom="0" backgroundColor="#AEAEAE">
    </s:NavigatorContent>  
    </s:NavigatorContent>
    <s:NavigatorContent label="Tab Eight_________________" width="100%" height="100%">
    <s:NavigatorContent left="0" top="-3" right="0" bottom="0" backgroundColor="#AEAEAE">
    </s:NavigatorContent>  
    </s:NavigatorContent>
    <s:NavigatorContent label="Tab Nine__________________" width="100%" height="100%">
    <s:NavigatorContent left="0" top="-3" right="0" bottom="0" backgroundColor="#AEAEAE">
    </s:NavigatorContent>  
    </s:NavigatorContent>
    <s:NavigatorContent label="Tab Ten___________________" width="100%" height="100%">
    <s:NavigatorContent left="0" top="-3" right="0" bottom="0" backgroundColor="#AEAEAE">
    </s:NavigatorContent>  
    </s:NavigatorContent>  
    </mx:ViewStack>
    THIS APPEARS TO HAVE THE SAME LOAD TIME as the TabNavigator.
    So I have to ask:
    What is a permanent fix for this.
    Where I can I update my current "Build" for FLEX 4
    so my application does not retain this bug.
    OR ANOTHER QUESTION...what can I exclude in my declarations to fix this bug.
    I would prefer to use the Spark TabBar over the mx:tabnavigator
    MY CURRENT "BUILD" is 4.0.1.277662

  • Completely hiding tab and content in TabNavigator

    Hi All,
    Does anyone know how to hide a tab in TabNavigator?  I want the tab in the tab bar to dissappear so that you cannot see, click, nor view the tab or associated page.
    I have tried visibility="false", getting rid of the dataProvider cell that corresponds with the tab (this only affects data obviously and not the view), and extending the tabNavigator component (but not successful).
    My setup is:
        <vo:TabNavigator id="mainTabNavigator4Components" selectedIndex="{model.selectedComponentIndex}">
            <mx:Repeater id="rp" dataProvider="{model.components}">
                <mx:Canvas label="{rp.currentItem.team}">
    Thanks for any input everyone.
    Regards,
    Joseph

    The basic idea is to loop through the Tab Navigator's children, use the getTabAt() method to return the Tab as a button, then show/hide the button using the visible property:
            private function disableSomeTabs():void{
                //Called by a tab navigator's creation complete event.
            // This Tab Navigator's id is "Mytn".
                //Hide a Tab with a certain name ('My Hidden Tab').
                var i:int;
                for (i = 0; i < Mytn.numChildren; i++){
                    var dispObj:Button =  Mytn.getTabAt(i);
                    if (dispObj.label == 'My Hidden Tab'){
                        dispObj.visible = false;

  • IPhone - Hiding the TabBar

    I have a relatively simple app that just has 3 views/view controllers and a tab bar at the bottom that lets you select which screen to view.
    I would like to be able to show/hide the tab bar at the bottom programmatically so that you can see the entire view without the tab bar stuck at the bottom.
    The behavior I'm looking for is similar to the Photos application where the nav at the top and buttons at the bottom disappear after a certain amount of time then reappear when you touch the screen. For that app, it appears that they are using a NavigationController with a TabBarController inside of it. In my case though, I'm just using a TabBarController (no NavigationController)
    I've tried a number of things including reducing the frame of the TabBar, or changing it's opacity. These work to hide the actual buttons on the TabBar, but they still leave a "blank spot" at the bottom of the screen where the buttons were.
    Any ideas here?

    Thanks to everyone for the replies, but I think I "solved" this problem myself.
    Regarding the suggesting to use 'hidesBottomBarWhenPushed' - that only seems to work with TabBars inside of NavigationControllers, not with TabBars inside of TabBarControllers (correct me if I'm wrong here though..)
    Ultimately, the solution was to just not use the UITabBarController. I just implemented my own Controller class for the TabBar. It sets itself up as the TabBar's delegate to handle tab bar item selections and transfers control to the appropriate view controller based on the Tag of the TabBarItem that was selected.
    Once I took the UITabBarController out of the picture and just worked with the TabBar directly, I was able to make it transparent, make it float over my view, disappear and reappear, etc.

  • Vertical TabBar

    Hi All, I've been working with Flex for a few weeks and i ran
    into a problem with the TabBar I need a VERTICAL tab navigator but,
    as far as i know, the TabNavigator control doesn't allow to do
    that... the TabBar does. Does anyone of you guys made this before
    or can give me an idea, maybe there's a property or style I'm
    missing. Any help will be very appreciated. THANKS!

    Ive had alot of wacky results with rotation too, i think you
    have to specify the axis your going to rotate it on otherwise it
    does it from one of the corners and depending how large the object
    is it can move off screen even, im not if thats whats happening but
    sounds like it, see if you can specify the axis in the center of
    your object also you can create your tabs graphically using
    canvases and linkbuttons or labels for your text, then use a
    repeater, make sure to use rounded canvases with a border and then
    tuck the side you want to be flat behind something like another
    canvas or the edge of your screen, make sure whatever is hiding
    that edge has a its scrollbars set to "off"
    EXAMPLE:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" horizontalScrollPolicy="off"
    verticalScrollPolicy="off">
    <mx:Repeater id="rep01" dataProvider="{}">
    <mx:Canvas width="20" height="80" left="-2" top="5"
    borderStyle="solid" borderColor="#ffffff" cornerRadius="4"
    borderThickness="1" backgroundColor="#c0c0c0">
    </mx:Canvas>
    </mx:Repeater>
    </mx:Application>

  • Tabnavigator validates when switching pages??

    I would like to build a cfform with a tabnavigator and two pages. Each page contains fields with some validation rules. I find that when the user switches pages, any integer, range, or other numeric validation rules are fired immediately. Simple isrequired style rules are not.
    It is most annoying, since it looks to the user like there are errors before he has even had a chance to enter data.
    <cfform name="myform" height="400" width="400" format="Flash" timeout="600">
    <cfformgroup type="tabnavigator" id="tabBar">
      <cfformgroup type="page" label="Page 1">
       <cfinput type="text" name="Name" label="Name"
        required="Yes" message="Please enter a name.">
      </cfformgroup>
      <cfformgroup type="page" label="Page 2">
       <cfinput type="text" name="age" label="Age" value="0"
        validate="range" range="1,1000000" message="This value must be greater than 0.">
      </cfformgroup>
    </cfformgroup>
    </cfform>

    Chris,
    The DB is Oracle 10g, OS is Windows 2003 Server, The Web Server is in the same machine. The server is Dell 1420 SC Xeon @ 2.8GHx, 512MB RAM. It has not much traffic since we are on the development phase, so i don't think it is a capacity problem.
    The problem happens when connecting from the internet as well as from the intranet.
    I have not seen the Apache access logs, I will see them and update the thread.
    Thanks.
    Francisco.

  • Place spark TabBar on Bottom of ViewStacks (+ rounded corners pointing downwards)

    Why is it so hard to do such a simple thing... I figure also it must be a very common thing.
    <s:VGroup horizontalAlign="center" horizontalCenter="0" verticalCenter="0" gap="0">
        <mx:ViewStack id="view" width="450" height="300" />
        <!-- NavigatorContent dynamically gets added to view on appComplete-->
        <s:TabBar dataProvider="{view}" skinClass="skins.CustomSparkTabBarSkin" />
    </s:VGroup>
    The Custom Skin:
    <s:Skin
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:fb="http://ns.adobe.com/flashbuilder/2009"    
    alpha.disabled="0.5"><fx:Metadata>
        <![CDATA[
        [HostComponent("spark.components.TabBar")]
        ]]>
    </fx:Metadata>
    <fx:Script  fb:purpose="styling" >
        <![CDATA[
        import mx.core.UIComponent;
        /**  Push the cornerRadius style to the item renderers.*/
        override protected function updateDisplayList(unscaledWidth:Number, unscaleHeight:Number):void {
            const numElements:int = dataGroup.numElements;
            const cornerRadius:int = hostComponent.getStyle("cornerRadius");
            for (var i:int = 0; i < numElements; i++) {
                var elt:UIComponent = dataGroup.getElementAt(i) as UIComponent;
                if (elt)
                    elt.setStyle("cornerRadius", cornerRadius);
            super.updateDisplayList(unscaledWidth, unscaledHeight);
        ]]>           
    </fx:Script>
    <s:states>
        <s:State name="normal" />
        <s:State name="disabled" />
    </s:states>
    <!--- @copy spark.components.SkinnableDataContainer#dataGroup -->
    <s:DataGroup id="dataGroup" width="100%" height="100%">
    Comes out with this component:
    I would like to place that TabBar at the Bottom of the viewstack, rounded corners pointing outwardly.
    if I add rotation="180" to the TabBar <s:TabBar dataProvider="{view}" skinClass="skins.CustomSparkTabBarSkin" rotation="180"/> will make the matter all the more laughable. I don't understand why is it so hard to create a TabNavigator with the buttons on the bottom?!

    Alright, I solved it by using Flash Catalyst... at least its' a simple way...
    So what I did was, Skinned it in Photoshop, imported it to Catalyst, and did the ncessary (convert to button, and select the label for it) and imported it into Flash Builder 4.
    I added the following component in Main:
    <mx:ViewStack id="view" width="450" height="300"  x="33" y="70"/>
    <s:TabBar id="tabBar" dataProvider="{view}" skinClass="components.CustomSparkTabBarSkin" y="375" x="32"/>
    The component.CustomSparkTabBarSkin
    <s:DataGroup id="dataGroup" width="100%" height="100%">
        <s:layout>
            <s:ButtonBarHorizontalLayout gap="4"/>
        </s:layout>
        <s:itemRenderer>
           <fx:Component>
               <s:ButtonBarButton skinClass="components.TabButton" buttonMode="true"/>
           </fx:Component>
        </s:itemRenderer>
    The components.TabButton (generated by Flash Catalyst)
    <s:Group d:userLabel="Tab Button 1" x="0" y="0">
         <s:BitmapImage smooth="true" source="@Embed('/assets/images/Game Tab Navigator/Buttonec.png')" d:userLabel="Button 99c" x="4" y="0"/>
         <s:RichText alpha="0.95" color="#725b3c" fontFamily="Bebas" fontSize="18" height="20" lineHeight="120%" textAlign="center" d:userLabel="hello" whiteSpaceCollapse="preserve" width="62" x="0" y="24" x.up="0" y.up="14">
              <s:content>
                   <s:p>
                   <s:span>Hello</s:span>
                   <s:span baselineShift="2" fontFamily="Myriad Pro" fontSize="17" fontWeight="bold">¢</s:span>
                   </s:p>
            </s:content>
         </s:RichText>
    </s:Group>
    Now the problem is... When I label my NavigatorContent, and dynamically added to the ViewStack (which is the dataprovider of the TabBar), the TabBar don't show the labels...
    Even though it's hardcoded in the example above to show Hello ... Nothing shows.
    What am I missing?

  • Change Position of Tabs in TabNavigator

    Howdy!
    I am new to flex/flashbuilder. I am trying to create a tabNavigator with the the tabs on the the side of the content area. I have searched and have found some work arounds (see below). However, I was under the appreciation that Flashbuilder 4 would have built in options for accomplishing this.
    Can someone please provide any insight? I find it hard to believe that no one would have considered placing a simple option like this into the application.
    Thanks,
    Here is the code that kind of achieves my purpose however it is not a clean as the native look of the tabNavigator.
    <mx:HBox>
            <mx:TabBar dataProvider="{vs}"  direction="vertical"/>
            <mx:ViewStack id="vs">
                 <mx:Canvas label="First Tab" backgroundColor="red" width="500"  height="500"/>
                <mx:Canvas label="Second Tab"  backgroundColor="green" width="500" height="500"/>
                 <mx:Canvas label="Third Tab" backgroundColor="blue" width="500"  height="500"/>
                <mx:Canvas label="Fourth Tab"  backgroundColor="yellow" width="500" height="500"/>
             </mx:ViewStack>
        </mx:HBox>

    Georgeonetwothree wrote:
    it is part of a dreamweaver template
    If it's part of a DW template then once you save the page all pages using that template should update automatically.

  • TabNavigator and dynamic tab-styles

    I'm trying to change the tab-style skin style based on the content that the parent canvas is being provided.
    For example, if the parent canvas (which is being reused everywhere) has a particular property, i'd like my tabNavigator's tabbar to use another skin for the buttons.  I've created a getter in my tabNavigator to access the tab bar.  To which i set the skin style to the class i'd want.  Doesn't work. Is there a simple style that i can set to do this?
    I've tried creating a css for every possibility and assign it to tabNavigator with a bindable variable.  But it still displays the default value.  If i put it in the mxml declaration stylename="customskin" it works.  but if i put stylename="{_bindableStyle}", it doesn't work.
    In both cases, none of the tabNavigator's children are created until this value is set, so i'm not trying to set a style after the content was created.
    I've also tried creating the tabNavigator on creation instead of having it in the mxml declaration, doesn't work either.
    Any thing else i can try that i haven't yet?

    Hi Frank, thanks for response.
    Do you think that somehow in my case there is only one instance of the TF_A ?
    Here is relevant settings for my popup containing static region with TF_A
              <af:popup id="pB55" contentDelivery="lazyUncached"
                        popupFetchListener="#{myBean.crudPopupFetchListener}"
                        autoCancel="disabled" childCreation="deferred">
                <af:panelWindow ...>
                  <af:region value="#{bindings.TF_A.regionModel}" id="r6"
                </af:panelWindow>
              </af:popup>myBean.crudPopupFetchListener :
       //Task flow activation code (for the TF binding 'active' property  bellow)
       pageFlowScope.put("pB55", "true);
       // code for setting the TF parameters:
       .....and here i setting for TF_A binding from the pageDef:
        <taskFlow id="TF_A"
                  taskFlowId="..."
                  activation="conditional"
                  xmlns="http://xmlns.oracle.com/adf/controller/binding"
                  Refresh="ifNeeded" active="#{pageFlowScope.pB55 eq true}">
          <parameters>
          </parameters>
        </taskFlow>

  • TabNavigator tab selection event

    I've been trying to trigger an event when i click on the tab in a tabnavigator.
    The problem is that if i try to use the "change" event, the events for components inside the tab navigator are being fired and thats causing me problems. Could you suggest an alternative to "change" with a specific event that would enable me to fire a specific function only when i click on the tabs?
    I know the question is trivial but I couldnt find an answer anywhere.
    Thanks in advance

    <s:VGroup>
              <!-- Create a Spark ButtonBar control to navigate
              the ViewStack container. -->
              <s:TabBar id="tabBar" dataProvider="{myViewStack}" change="tabbar1_changeHandler(event)"/>
              <!-- Define the ViewStack and the three child containers. -->
              <mx:ViewStack id="myViewStack"
                               borderStyle="solid"
                               width="100%">
                   <s:NavigatorContent id="search" label="Search">
                        <s:Label text="Search Screen"/>
                   </s:NavigatorContent>
                   <s:NavigatorContent id="custInfo" label="Customer Info">
                        <s:Label text="Customer Info"/>
                   </s:NavigatorContent>
                   <s:NavigatorContent id="accountInfo" label="Account Info">
                        <s:Label text="Account Info"/>
                   </s:NavigatorContent>
              </mx:ViewStack>
         </s:VGroup>
    protected function tabbar1_changeHandler(event:IndexChangeEvent):void
         Alert.show(tabBar.selectedIndex.toString());

  • Tabnavigator individual page tab width control

    Hi,
    I'm currently developing a Flash form with a tabnavigator
    cfformgroup. I
    have 4 pages within the tabnavigator and I was wondering if
    it is
    possible to control the width of individual page tabs/labels.
    I've tried
    adding styles to specific pages with no success so far. I
    tried both
    labelWidth:50; for example and tabWidth:50;. I also tried
    with
    specifying pixels as the unit but nothing works.
    The basic outline of the code I have is like this:
    (cfformgroup type="tabnavigator)
    (cfformgroup type="page" label="Page 1")
    (/cfformgroup)
    (cfformgroup type="page" label="Page 2")
    (/cfformgroup)
    (cfformgroup type="page" label="Page 3")
    (/cfformgroup)
    (cfformgroup type="page" label="Page 4")
    (/cfformgroup)
    (/cfformgroup)
    The real labels have very different lengths hence the desire
    to control
    their individual widths. Is it even possible and if it is,
    how?
    Thanks in advance for any help anyone can provide.
    Stéphane Bergeron
    reach : connect : communicate
    http://www.webfocusdesign.com
    blog : tutorials : articles : gallery
    http://www.pixelyzed.com

    You will need to do this in action script after the form has
    loaded.
    See example
    <cfform action="" method="POST" name="myform"
    format="Flash" onload="formLoad();">
    <cfformitem type="script">
    function formLoad(){
    var myTab = myTab;
    var tbWidth = myTab["tabBar"].getChildAt(1).width;
    function sizeTab(tb){
    var myTab = myTab;
    if(tb == 0){
    myTab["tabBar"].getChildAt(1).visible = true;
    myTab["tabBar"].getChildAt(1).width = _root.tbWidth;
    else{
    myTab["tabBar"].getChildAt(1).visible = true;
    myTab["tabBar"].getChildAt(1).width = 200;
    </cfformitem>
    <cfformgroup type="hdividedbox" visible="Yes"
    enabled="Yes">
    <cfformgroup type="panel" label="Panel">
    <cfformgroup type="tabnavigator" id="myTab">
    <cfformgroup type="page" label="Tab 1">
    <cfformitem type="text">This is page
    one</cfformitem>
    </cfformgroup>
    <cfformgroup type="page" label="Tab 2">
    <cfformitem type="text">This is page
    two</cfformitem>
    </cfformgroup>
    <cfformgroup type="page" label="Tab 3">
    <cfformitem type="text">This is page
    three</cfformitem>
    </cfformgroup>
    </cfformgroup>
    </cfformgroup>
    <cfformgroup type="horizontal">
    <cfinput type="Button" name="btn_1" value="Original Tab
    Size" onclick="sizeTab(0);">
    <cfinput type="Button" name="btn_2" value="Resize Tab 2"
    onclick="sizeTab(1);">
    </cfformgroup>
    </cfformgroup>
    </cfform>
    Ken

  • Stop Change Event in TabNavigator

    How can I stop the change event from happening on a
    TabNavigator?
    I have a TabNavigator with two tabs. I want to be able to
    detect when the user clicks on the non-active tab then check
    certain components on the active tab and then depending on the
    components either let the user to go to the non-active tab or not.
    I have tried using the change event but I can not stop the
    tab from actually changing. Is there another event which gets fired
    before the change event that I can use?
    I have tried using:
    event.preventDefault();
    event.stopImmediatePropagation();
    event.stopPropagation();
    But none of them stop the tab change.

    I would use a TabBar with a ViewStack instead, that way when
    you click on the TabBar you can programmatically tell it what to
    do.

  • Spark TabBar: How to disable single tabs?

    Hi,
    I wrote already a bug report about this issue, but no one responded.
    For an application I need to disable and enable tabs on the fly. So I built a TabBar with a ViewStack as a dataProvider and NavigatorContent as the single items. Then I tried disabling a NavigatorContent component so that the tab is disabled. But it is still enabled and can be selected. How can I disable a single tab? Do I have to create a custom solution or wait until the TabNavigator component is ported to Spark? (Maybe I should fall back to the halo component)
    Also the enabled property of the TabBar doesn't disable the tab content. So there seems to be no connection between the data and the TabBar.

    If you find this post looking for the answer, I posted two options here: http://forums.adobe.com/message/4153359#4153359
    =D

  • Extending TabNavigator

    Hi everyone ! :)
    I need to extend the TabNavigator class in order to display a
    tab bar containing :
    - tabs on the left (as usual)
    - a button the user can click on the right
    Of course, my button should stay on the right of the tab bar
    whatever the size of the TabBarNavigator
    I didn't want to start from scratch, so I had a look at
    FlexLib and its great SuperTabNavigator. However, my tabNavigator
    is much more simpler than the SuperTabNavigator and I just wanted
    to extend one class : TabNavigator. I tried this :
    quote:
    package extensions
    import mx.containers. TabNavigator;
    import mx.controls. TabBar;
    import mx.controls. tabBarClasses. Tab;
    import mx.core.mx_internal ;
    import mx.core.IFlexDispla yObject;
    import flash.display. DisplayObject;
    import mx.controls. Button;
    import mx.containers. HBox;
    import mx.containers. Canvas;
    import mx.controls. Spacer;
    use namespace mx_internal;
    public class extended_TabNavigat or extends TabNavigator
    protected var holder:HBox;
    protected var spacer:Spacer;
    protected var myButton:Button;
    public function extended_TabNavigat or()
    super();
    override protected function createChildren( ):void{
    // Tab bar creation
    tabBar = new TabBar();
    super.createChildre n();
    // Holder that will contain my tab bar, a spacer and the
    button
    holder = new HBox();
    // Adds the container to the TabNavigator
    rawChildren. addChild( holder);
    // Adds the TabBar to the holder container
    holder.addChild( tabBar);
    // Spacer that will fill the space between the tabs and the
    button
    spacer = new Spacer();
    spacer.percentWidth = 100;
    // Adds the spacer to the container
    holder.addChild( spacer);
    // My button
    myButton = new Button();
    myButton.label = "Hello world !";
    // Adds the button to the container
    holder.addChild( myButton) ;
    So I created an HBox containing:
    - the tab bar
    - a spacer filling all available space
    - and my button
    Unfortunately, it doesn't work... The TabNavigator has no tab
    bar nor button...
    Do you have any idea why ?
    Thanks a lot

    If I do it like this, then my button will be on the right,
    next to my TabNavigator.
    What I want is a button
    inside the tabNavigator, at the opposite of the tabBar.
    You can see an example here :
    http://flexlib.googlecode.com/svn/trunk/examples/SuperTabNavigator/SuperTabNavigator_Sampl e.swf
    I want my button to be at the exact same position than the
    drop down menu button of the SuperTabNavigator and I don't think
    it's possible in mxml.

Maybe you are looking for