Enable tab bar

I have bunch of tab bars in my application. Is there a way to
enable a tab bar by clicking on a button or image. Suppose I am on
the first tab and there I have a button. When I click on that
button it should open up another tab. Thanks.

Set the TabBar.selectedIndex().
Tracy

Similar Messages

  • How can I make the Smooth Scrolling option in the Advanced menu apply ONLY to the tab bar?

    So, I'm one of those people who usually have 60+ tabs open at any given time. I'm also on a Lenovo laptop with a trackpoint (that may be relevant later).
    Right now, I have smooth scrolling disabled.
    In previous versions of Firefox, if I sat my cursor on the tab bar and scrolled either up or down, it would scroll across my tab bar at a constant, quick rate, usually taking about two or three seconds to reach the end. This wasn't an animated scroll (I've disabled that animated scroll via about:config in the current Firefox version).
    However, now, it's doing something different. There's acceleration to the scroll. If I just tap the scroll in either direction, it scrolls only a few tabs. However, if I hold the scroll for a second, it instantaneously takes me to the far end of the tab bar, completely skipping at least thirty tabs in between.
    I have tab scroll buttons added by Tab Mix Plus (smooth scrolling is also not enabled in that addon), and the same accelerating behavior occurs there. One or two taps of the button moves the bar a few tabs to the left or right, but several taps in quick succession takes me all the way to the far end of the bar.
    I can restore the old scrolling behavior for the tab bar by turning on smooth scrolling in the Options > Advanced menu, but that turns on smooth scrolling for web pages at the same time. I don't like the web page smooth scrolling, and would rather not have it on.
    Or if there's any other way to make it so that scrolling the tab bar moves the tab bar a fixed amount no matter what, that would be great.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Dragging an existing tab to the desktop (or below tab bar) does not open that URL in a new window, only a new window with an empty tab. FF4 RC2 (did it with RC1 as well).

    When I drag an existing open tab from the FF4 tab bar onto my desktop, a new window opens as expected but the tab within that window does not load the URL of the tab dragged from the previous window. The tab menu item "Move to New Window" does the same thing as well.
    I have disabled Tab Mix Plus add-on but it has made no difference. Is there a setting somewhere that I am missing?

    I use Tab Mix Plus and do not have that problem.
    <br/>
    You may need to try Firefox Safe Mode to see if an add-on is causing the problem; see: http://kb.mozillazine.org/Safe_Mode
    *<u>In Firefox 4, to enter Safe Mode, hold the Shift key while clicking on the Firefox 4 desktop icon.</u>
    *Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes '''<u>before</u>''' starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    * If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling '''<u>one at a time</u>''' until the problem reappears. '''<u>You MUST close and restart Firefox after EACH change</u>''' via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.
    * See the following for more information
    ** http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes
    ** http://support.mozilla.com/en-US/kb/Troubleshooting+plugins
    ** http://support.mozilla.com/en-US/kb/Basic+Troubleshooting

  • Double click in the empty tab bar space to open a new tab.

    I upgraded to Firefox 7 today, and now if I try to click in the empty space on the tab bar to the right of the current tabs I no longer get a new tab.
    Is there a way to re-enable this feature?

    Sorry but this is annoying! I have been using Firefox for a long time and all of a sudden an update (7.0) stops the doubleclick in the tabs bar.
    I have Firefox both at the office and at home. Strangely, at home I´ve got this problem but at the office I haven´t. I´ve got XP at the office and Vista at home.
    And please don´t tell me to get used to the plus button or the mouse middle button.

  • (Chrome Like) Auto-Hide Tab bar in Safari Full Screen mode

    Is there a plugin or some other way to auto hide the tab bar in Safari fullscreen mode like the way Chrome does?
    This is the only thing stopping me from using Safari, it's way smoother than Chrome and feels much more native to Lion, but the fact the tab bar just keeps hanging there is annoying.
    I tried the Cmd+I method mentioned in the community, but it only works when you're only opening one tab, if you open several tabs, the tab bar will show up again. It also comes back up once you exit Full Screen mode.
    Thanks for your help !

    Hello myzzzl, this is normal behavior in full screen mode, you can set the [http://kb.mozillazine.org/Browser.fullscreen.autohide browser.fullscreen.autohide] in about:config to False, to change that, but if you do that tabs and location bar is enabled in full screen mode.
    wait if another contributor/helper give you a code which I don't know.
    thank you

  • How to disable a tab in a spark tab bar?

    I have a spark tab bar linked to a ViewStack.  In olden days, IIRC,  setting the enabled property of a viewstack member would set the corresponding tab inactive.  However, if I try that now, the tab control is still active, but the contents of the viewstack for that tab is indeed disabled.
    To reiterate:  I want certain tabs in a spark tab bar to be disabled (i.e. unable to be chosen and displaying their disabled skin state).
    <s:TabBar id="tabBar" dataProvider="{tabStack}" x="70" y="91" skinClass="CalculatorTabsSkin"/>
    <mx:ViewStack id="tabStack" width="100%" height="100%" creationPolicy="all" change="tabStack_changeHandler(event)">
         <s:NavigatorContent id="nc1" label="PIERS">
         <comp:Tab1 id="tab1"  width="100%" height="100%" continue="tab1_continueHandler(event)" />
         </s:NavigatorContent>
         <s:NavigatorContent id="nc2" label="FOOTINGS">
         <comp:Tab2 id="tab2" width="100%" height="100%" continue="tab2_continueHandler(event)" numberOfPiers="{totalNumberPiers}" />
         </s:NavigatorContent>
         <s:NavigatorContent id="nc3" label="BAGS OR TRUCK?">
         <comp:Tab3 id="tab3"  width="100%" height="100%" totalCubicYards="{totalCubicYards}" totalNumberBags="{totalNumberBags}" />
         </s:NavigatorContent>
    </mx:ViewStack>

    Addendum:
    Literally two minutes after I got back to actually working, I found a more "elegant" solution.  I posted it elsewhere, but I guess I forgot to share it here. =/ So I thought I'd update this real quick. =)
    If you apply a custom skinClass to your tab bar you can bind the tab.enabled property just like you'd expect/want.
    <!-- some component that has the TabBar in it... -->
        <fx:Script>
             <![CDATA[
        [Bindable] private var tab2IsReady:Boolean = false;
        private function checkCriteria():void{
             tab2IReady = someOtherThing.isFinished;//Boolean
        ]]>
        </fx:Script>
    <s:TabBar id="theTabBar"
       dataProvider="{viewStack}"
       skinClass="skins.CustomTabBarSkin"/>
    <mx:ViewStack id="viewStack">
          <s:NavigatorContent label="Tab index 0">
               <!-- Your first tab's content -->
          </s:NavigatorContent>
          <s:NavigatorContent label="Tab index 1" enabled="{tab2IsReady}">
               <!-- Your second tab's content -->
          </s:NavigatorContent>
    </mx:ViewStack>
    <!-- rest of the component that has the the TabBar in it... -->
    When you type "skinClass" use the auto complete to generate the custom skin (named whatever you want).
    The generated code will appear like below (I left out the Script tag).
    <?xml version="1.0" encoding="utf-8"?>
    <!-- skins/CustomTabBarSkin.mxml
    Adobe's copyright & doc comments
    -->
    <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[
             * @copy spark.skins.spark.ApplicationSkin#hostComponent
            [HostComponent("spark.components.TabBar")]
            ]]>
        </fx:Metadata>
          <!-- optional Script tag here -->
        <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%">
            <s:layout>
                <s:ButtonBarHorizontalLayout gap="-1"/>
            </s:layout>
            <s:itemRenderer>
                <fx:Component>
                    <s:ButtonBarButton skinClass="spark.skins.spark.TabBarButtonSkin" />
                </fx:Component>
            </s:itemRenderer>
        </s:DataGroup>
    </s:Skin>
    <!-- End skins/CustomTabBarSkin.mxml -->
    Then add the enabled property to the ButtonBarButton & bind it to data.enabled in your skin class.
    Change:
               <fx:Component>
               <s:ButtonBarButton skinClass="spark.skins.spark.TabBarButtonSkin" />
           </fx:Component>
    To:
               <fx:Component>
               <s:ButtonBarButton skinClass="spark.skins.spark.TabBarButtonSkin"
                    enabled="{data.enabled}" />
         </fx:Component>
    Then any <s:NavigatorContent/> used with a TabBar using that skin will respect the enabled property and do exactly what you expect & want (be enabled when true, & disabled when false).
    Hope this helps some people.  WIsh I'd remembered to re-post it here when I first figured it out.
    Happy Coding! =D
    Todd
    Message was edited by: Chaos7703 - Just made one statement a bit more explicit.

  • Odd icon or symbol is displayed in the tab bar.

    In FF 4, I have a weird little symbol (like a blue 'Q' with a long straight tail) that shows up in the tab bar. If I open enough tabs, it is right at the break between the third and fourth tab.It is definitely coming from FF, as it follows the window if I drag it around. Closing and relaunching FF will sometimes removes it, but it comes back. I can't click it or select it and I can't tie its appearance to any particular site or other app open at the same time.

    Hi AJ,
    Thanks for the link.
    None of the solutions mentioned in it could solve the issue.
    The issue is indeed in IE7 and IE8.
    Problem : I cannt tell my user not to USE IEs.
    My Requirement.
    I want to redirect to the same page on click of button B.(when A is disabled and then B remains enabled)
    A) I tried using ResetButton also but this issue still remains.
    B) I got it done using a Link type item but user wants it as a Button.
    More over the link doesnot always gives me the desired result or (rather soemtimes gives me stale data as well)
    Thanks,
    Sombit

  • Always show tab bar - Safari 3 - Leopard

    Hey. I recently lost all of my Home Folder's files, and now Safari 3 in Leopard does not allow me to always show the tab bar. I look in preferences, and the option is not there.
    How do I enable to always show the tab bar?

    Hi
    Welcome to Apple Discussions
    Go to the View Menu>Show Tab Bar or Shift/Command/T keys to show or hide. Tabs need to be enabled in your Safari Preferences>Tabs.
    As you have a new Safari Preference file, besides resetting the preferences in the preference panel, you'll need to reset any custom options, such as spelling in the Edit Menu or the various options in the View Menu. Also, additional icons can be added via View>Customize Toolbar via Drag/Drop on the ToolBar.

  • How do I enable tabs in safari5.0.5

    The tab bar shows the page I am viewing. However the previous tabs have disappeared. I have tabs "enabled' in preferences and "show tab bar" in view.
    The only recourse is to back arrow to the previous page. Any help is appreciated.

    From your Safari menu bar click Help then click Safari Help.
    Type in    tabs      in the search field top right corner of the window.
    Select: Browsing in tabs
    Results should give you a better idea of how tabbed browsing works in Safari.
    If you click on a tab that is already open and it disappears, go to your Safari menu bar, click Safari / Empty Cache. Quit then relaunch Safari to test. Emptying the cache may help,
    If not, quit Safari. Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder. Move the com.apple.Safari.plist file from the Preferences folder to the Desktop. Now launch Safari. If tabs function as they should, move the .plist file to the Trash. If not, move it back to the Preferences folder.

  • Persist Customized Tab Bar

    Hi there, i have been all around the web for this, but i just cannot find a solution that works...
    I am currently using storyboards in xcode and I´m working on a project using tab bars. I have over 5 tabs atm and i therefore get the more button, and the user will also be enabled to customize the tab bar order. What I´m windering about is: How do i make the user-customized tab bar order to save when the application terminates. So when the application launches again, the tab bar would be just as the user left it.
    As I have said, I have been all around the web for this one. Most of the explenations on this problem are really old, 2008 - 2009. It would be really awsome if someone out there really could explain how to do this, and actually explain where to type in the different code.
    Cheers

    Tabs relate to the web pages. It is not logical for the tabs to include the address bar and toolbars. This is another example of the triumph of form over function. It should not be necessary to install plugins or fiddle with styles to make Firefox useable.
    Have you noticed how it seems to be morphing into Chrome?

  • HT1947 Where do I find Remote on the "tab bar" in iTunes in order to punch in my 4 digit code from iPhone (to pair and home share)?

    I've already configured iTunes to share libraries at home...but I can't seem to find where to punch in the 4 digit code that is provided from my iPhone.To be honest, I am extremely frustrated at this point! Please give me an answer that will tell me WHERE exactly this "TAB BAR" is located. Of course I habve the app Remote...but where on earth do I find this to enter a code?!! Getting very annoyed.
    I've seen other comments and questions exactly like mine whilst Googling for answers...but they are all answered with jibberish and cockiness. No real detail. All in all--there are NO answers and I am not a happy camper.
    Thank you for your time.
    ~LI

    Hi, if you have switched on your 'Home sharing' on both itunes and your device, your device should show up in your itunes side bar and below the list of contents on ur device you will find the remote icon. click it and it will prompt you to enter the passcode. If you can't find this then
    Here's what to check for:
    Lunch itunes
    Go to Edit
    Click preferences
    on the General Tab, you'll noticed that 'Shared libraries' isnt checked. that's fine you will fix this.
    Now click on Sharing Tab if u have a message about Bonjour service not running then all you need do is enable Bonjour Service on you computer.
    For Windows 8 users:
    Right click 'Computer'
    Click on 'Manage'
    Double click 'Services and applications'
    Double click 'Services'. This will display a list of background services/processes running on ur PC.
    Scroll down to 'Bonjour Service' and right click.
    Click properties. In the pop up box, change the start up type to 'AUTOMATIC'
    click Start
    Apply
    close the box
    restart pc
    lunch itunes
    connect itunes and device to same wifi
    Do the 'Home Sharing' thing again and you will find all as i explained in my first paragraph.
    Sorry I have no idea where Services is located in mac or what it is called.
    Thank you.

  • Cannot disable "always show tab bar" in FF 28.0?

    FF 19 had an option to deselect "always show tab bar" so that the tab bar is shown only when 2 or more tabs are open.
    FF 28 seems to always show the tab bar. I don't see any way to disable that (unless 2 or more tabs are open).
    How can I coerce FF 28 to not show tab bar unless 2 or more tabs are open?

    waka wrote: "In Firefox 23 and up, as part of an effort to simplify the Firefox options set and facilitate future improvements to Firefox, the option to hide the tab bar was removed. Fortunately, this can easily be resolved if you desire the keep tabs hidden. You can install "Hide tab bar with one tab", an extension hosted on Mozilla's add-ons site".
    That definitely "helps" insofar as you addressed my question dispositively.
    However, I do not agree with the decision. How does removing one option substantially "simplify" things? How does forcing me to install an add-on "simplify" things for me, the customer?
    FYI, I few add-ons as potential risks and a definite maintenance headache. A GUI add-on is probably more susceptible to compatibility issues.
    If you want to "simplify" the GUI by removing one option from a menu (that isn't very "busy" in the first place; klunk!), at least provide an about:config option to control this behavior.
    As for "facilitating future improvements", that is not my concern, a customer. Everything is SMOP.
    I was in product development and maintenance for 35 years, and we always put the customer first. One of our cardinal rules was: do not remove a feature unless it is a security risk; and even then, we might leave an option to re-enable the feature "at your own risk".
    Oh well, I'm probably p.i.s.s.ing into the wind. But thanks again for an accurate response.

  • When I double-click the tab bar, FF4 just resizes the window but does not open a new tab

    When I double-click the Tab Bar, FF 4.0 just resizes the window but does not open a new tab. It happens when Menu Bar is disabled (not ticked).

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")<br />
    Your plugins list shows outdated plugin(s) with known security and stability risks.
    * Shockwave Flash 10.0 r32
    * Java Plug-in 1.6.0_03 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • How do I restore the "close tab" button to the END of the tab bar, WITHOUT USING AN ADDON

    Up until FF31, I used to have the following setting configured which moved the little 'X' button that closed tabs off of the tabs themselvs and onto the far right of the tab bar.
    browser.tabs.closeButtons; User Set; Integer; 3
    No, this no longer works. It has still moved the close buttons back to the tab buttons. Until I can figure out how to fix this, I will be moving back to a previous version. I can't for the life of me see why this feature was removed, other than Mozilla's seemingly arrogant insistence that it knows what people want better than they do.
    I was since told by someone that I can use an addon to fix it, yet the problem is THEY DO NOT WORK. The addons that supposedly solve this all have intermittent failures where they don't load correctly, leave random dead tabs open, and in one case it even seemed to open new tabs when I tried to close one.
    It's absolutely inexcusable that the dev team is so arrogant to take away a feature that has fundamentally no impact on the rest of the browser, other than, as I said before, they THINK they know what we want better than we do. It's no small wonder that FF is losing market share. The only thing keeping me on board was really this function, as I prefer this layout, and if it's gone, I see no reason to stick with FF over others.

    unfortunately it is not possible to restore the close button to have only one (customizable) close button on the Tab bar without using an extension.
    The extension is necessary because you need to create a new toolbar button and bind the proper code to it to make the button act as a tab close button (command: BrowserCloseTabOrWindow()).
    *tabs closebutton restored: https://addons.mozilla.org/firefox/addon/tabs-closebutton-restored/
    * http://cat-in-136.blogspot.co.uk/2014/05/note-do-same-without.html

  • Why is it that when I set the preference to always show the tab bar, it refuses to stay checked after I quit Firefox and restart it?

    Using Mac OSX10.6.7 and FF 4.0.1, I'm having a problem with the preference to always show the tab bar. I want it to always show. I check this in the Preferences under the "tab" window, and everything is fine until I quit FF and when I restart FF the tab bar is gone again. I go into preferences, and that option is now unchecked. How can I fix this so that my preference is saved?

    That hasn't helped the last ten times I tried. I posted before. I deleted the preferences file, I tried changing the preferences file, I went into about:config and changed the autoHide preference there. No dice. Firefox is not saving my preference for that one thing.

Maybe you are looking for