Style not applied to tab in TabNavigator?

Hi
    Here is the sample app
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute" width="100%">
    <mx:Script>
        <![CDATA[
            import mx.containers.Panel;
            public var count:Number =0;
            public function addTab():void{
                var pan:Panel = new Panel();
                pan.name="Tab " + count;
                theNav.addChild(pan);
                count++;
            public function removeTab():void{
                var childNum:Number = theNav.getChildren().length;
                if(childNum>0){
                    theNav.removeChildAt(childNum-1);
        ]]>
    </mx:Script>
    <mx:Button label="Add Tab" click="addTab()" x="24" y="26"/> <mx:Button label="Remove Tabs" click="removeTab()" x="104" y="26"/>
    <mx:TabNavigator id="theNav" x="36" y="76" width="100%">
    </mx:TabNavigator>
</mx:Application>   
Try adding a tab and then removing it using the buttons provided. Then again add a tab by clicking the button. Notice that the tab bar does not show the style of the one and only tab as selected. Is this a known issue?..
Thanks
Dharmesh

Sorry, just answered my own question. The previous editor had applied a separate character style on top of the paragraph style.
Don't know why, it doesn't serve any purpose except to confuse...
Fell for it!

Similar Messages

  • Set a style on an inactive  tab of TabNavigator

    Hi,
    For a chat application, I have a TabNavigator with one person
    by tab.
    When a person speak, I want to change the color of this
    specified tab.
    Currently, I can change the properties "backgroundColor" on
    the tab, but this don't works until we set the focus on this tab.
    quote:
    // tabs is my TabNavigator
    var childIndex:int = tabs.getChildIndex(
    tabs.getChildByName("theSpecificUserTab"));
    var tabButton:Button = tabs.getTabAt( childIndex );
    tabButton.setStyle("backgroundColor", "#FF6600");
    I suppose my way only changing the styles of the button when
    this button is active.
    But the goal is to change the style even if the tab isn't
    active...
    Is it possible ?
    Thanks a lots

    Is it impossible or my question is not understand ?
    Thanks

  • Why is my CSS style not applied to my HTMLB page ?

    Hello !
    I'm using a css file to define the layout of my htmlb page... but the layout is not applied.
    When I specify the layout CSS in a common html page the layout is applied but not for an htmlb page.
    Could someone let me know where I'm wrong ?
    EG :
    My htmlb page :
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content>
      <htmlb:page title=" " >
          <html>
                <head>
                <link href="style.css" rel="stylesheet" type="text/css">
                </head>
                <body>
                text1
        <htmlb:form>
            text2
        </htmlb:form>
                </body>
          </html>
      </htmlb:page>
    </htmlb:content>
    My css file style.css :
    <%@page language="abap"%>
    body {
        background-color: #990000;
        font-family: Verdana;
        font-size: 32x;
        line-height: 32px;
        color: #666666;
    As a result, I have a blank page (and not red) with the text "text1" and "text2" written.

    This code you have is unfortunately completely bogus. It is just not going to work. Writing HTMLB tags are easy. It takes but minutes to make the magic appear in the browser. But, you have also have to understand a little about what is happening.
    At a very first, I would like to recommend this link: <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">Getting Help</a>. You are specifically interested in the section that shows you how to get help about specific tags.
    As a next step, look at the help for the <htmlb:page> tag. It is the first important one. See how it is a collection of other <htmlb:document*> tags.
    Thereafter, look at SBSPEXT_HTMLB/document.BSP for an example on how to replace the <htmlb:page> sequence in your application.
    Once this is done, place you "<link ...>" sequence directly after the <htmlb:headInclude> tag that you have now on your page.
    Compile, test, assign 10 points.

  • TOC Style not applying correctly

    I have a basic test InDesign document with a 'Paragraph Style A' applied to a few key headers throughout the document. I created a separate 'Paragraph Style B' for the table of contents to represent instances of Paragraph Style A. Style A is set to 8pt font. Style B is set to 14pt font. When I setup the Table of Contents in the dialog box, I have selected Style A to appear as Style B, but when I actually place the TOC, it's still showing up as Style A. Any ideas as to why?
    InDesign CS5 version 7.0
    Windows XP SP3
    Same problem on two different computers (with the same setup as listed above)

    When you say "When I setup the Table of Contents in the dialog box, I have selected Style A to appear as Style B" does that mean that you set "Style B" in the middle section of the dialog box in this format:
    Style: Style A
         Entry Style: Style B
    If you did that, it should work. If it does not, you might try restoring your preferences:
    http://forums.adobe.com/thread/526990

  • Style not applied to text

    Text in a CS4 document I'm editing has "missing fonts" (i.e. typefaces that aren't on my system). I've updated paragraph styles, so they all have the new, correct typefaces etc. While going through the document with the Find Font dialog, I've located some instances of type which still have the incorrect typeface associated with it. However, no override is shown in the appropriate entry in the Paragraph Styles panel, and clicking the style entry does not apply the correct formatting of the style to the text...
    Can anyone suggest why?

    Sorry, just answered my own question. The previous editor had applied a separate character style on top of the paragraph style.
    Don't know why, it doesn't serve any purpose except to confuse...
    Fell for it!

  • Styles not applied [was: Help for DW Dunce]

    Just a little advice on css pls, i have a created a new css style and  named it "list", the colour of the font is set to #807e7e.  When i  upload the saved page to my server, the list is there but the text is  black, ive tried creating a new class, id and tag and applying the  settings, but nothing seems to change the text colour and the font style even though its  set in the rule definitions?
    Im sure its very simple but Im stumped ?
    The page is here
    http://www.craftypixel.co.uk/takeaway.html
    its the bullet list on the right
    Please keep answers simple

    I see this is your first post. Welcome to the forum. When posting questions, please use a meaningful subject line as it helps others identify problems where they might be able to help. It also helps others who might be suffering a similar problem identify threads that have been marked as answered.
    Now, to your particular problem. I have looked at the page you linked to, and the reason for the style not being applied is very simple. There is no style rule called .list in your style sheet. Moreover, you don't have a class applied to the list.
    I also noticed that your naming conventions are rather odd. The main content on the left has been given a class called right, and the sidebar on the right is in a class called left. I presume you must have changed your mind about the relative positions, which is why they're now reversed. But it's always a good idea to avoid class names that describe position or colour. It's better to use something like main and sidebar. Then it doesn't matter which side of the page you put them on. With your current naming, it's going to be a nightmare to maintain.

  • Border styles not applied to buttons; buttons rendered incorrectly

    Hi,
    I'm fiddling about with the border styles in Designer. Though I can change the border style and color of a button, set its background-color and even apply round corners, none of them are rendered in the resulting pdf-file.
    This is how a fancy button, I designed for testing purposes, looks like in the 'body pages' tab:
    When I switch to the 'pdf preview' tab, the button looks like this:
    Neither were custom individual border colors rendered nor round corners. Background fill styles weren't rendered as well.
    The xml of the button:
    <field anchorType="bottomLeft" h="17.8202mm" name="instructions" w="46.9198mm" x="1.886972in" y="3.863361in">
    <ui>
    <button/>
    </ui>
    <font typeface="Myriad Pro"/>
    <caption>
    <value>
    <text>Instructions</text>
    </value>
    <para hAlign="center" vAlign="middle" spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
    <font typeface="Myriad Pro" size="12pt" baselineShift="0pt"/>
    </caption>
    <border hand="right">
    <edge thickness="1mm">
    <color value="192,192,192"/>
    </edge>
    <fill>
    <color value="255,229,128"/>
    </fill>
    <corner join="round" radius="3mm" thickness="1mm">
    <color value="192,192,192"/>
    </corner>
    <edge thickness="1mm">
    <color value="0,0,255"/>
    </edge>
    <edge thickness="1mm">
    <color value="0,0,255"/>
    </edge>
    <edge thickness="1mm">
    <color value="192,192,192"/>
    </edge>
    <corner join="round" radius="3mm" thickness="1mm">
    <color value="0,0,255"/>
    </corner>
    <corner join="round" radius="3mm" thickness="1mm">
    <color value="0,0,255"/>
    </corner>
    <corner join="round" radius="3mm" thickness="1mm">
    <color value="192,192,192"/>
    </corner>
    </border>
    <bind match="none"/>
    </field>
    Is it a bug or are the styles of buttons not allowed to be customized by design?
    I'm using Designer 7.1 and Acrobat 7.0.5.
    Regards,
    Steve

    I tried buttons with bevel/emboss and it work (indesign cs6 8.0.2). Yes there is a known issue
    related to effects applied to buttons will not appear in the exported file.
    https://dl.dropboxusercontent.com/u/72277778/buttons%20bevel.pdf

  • 'Space after' style not applying to text in 'preview in browser' (chrome) or export modes.

    Hi all,
    I seem to run into this issue everytime I have two paragraph style applied within one text container.
    If I include a heading and apply a paragraph style which includes 'space after' and then some text below with another style it does not appear in either 'preview in browser' (Chrome) or in the exported html. The text appears butted up against each other. Please keep in mind there are no other paragraph or character styles applied to this container.
    It works if I 'unlink style from selection'.
    However this is extremely frustrating when you have a text heavy site with multiple paragraph styles - it effectively renders paragraph styles useless and generates excessive CSS code and a very time-consuming process if I need to go back and alter the paragraph styles.
    Does anyone else experience this issue? Can anyone shed some light on this?
    I need to get this site through to my client ASAP and would rather have a professional CSS file rather than one full of work-arounds.
    Adobe, please respond ASAP.
    Kind regards,
    Adam

    For two separate paragraph styles to work in one text container in muse,
    you need to use a hard return.
    You would use Character Styles if you want to use two specific styles inside one text container
    with just a "en space" between the text.
    This is based on using Muse generated CSS and not going into the CSS files after Muse generated the code and altering to modify the look.
    See attached file:

  • KADMPopupControlType styles not applying

    Hi,
    I am trying to get the effect of the Stroke or Opacity items on the control dialog - clickable text to open a dialog.
    I've looked into their construction and the items are ADMPopupControlType with a style of kADMActiveLabelPopupControlStyle. I tried creating one of these and it will set the style in code and when I get style it will return the right numbers, but no matter which style I try, in Illustrator it always looks like a text edit box with a right-arrow button. It doesn't seem to take changes in the dialog style, either - tried setting that to dial and got the default slider anyway.
    I have been looking through the documentation for a clue as to why the appearance doesn't change. I've tried invalidating and updating after setting the style, but it seems to do nothing.
    Does anybody have any experience with ADMPopupControlType styles or any idea why a style would not be applied?
    Any help is much appreciated!
    Thanks.

    Thanks for the help. I've read many of Peter's tutorials this morning, and I will definitely import Word docs the correct way the next time I do this. I'm starting to think that RoboHelp is very complicated, but I will continue to learn with the trial version to see if it's the tool I want to use.
    But for now, I have decided not to attempt importing again at this time, but rather, since I have all my content and images saved in various folders, I am just going to input my online help manually and import the images - time is of the essence here and I can't afford any more errors on my part as a novice.
    I would just like to know if you can provide me information on these questions:
    With only one css in my online help (default.css), how come I can't change/add a style in the css and have it apply to the content? Is there an intermediary step? I have, for ex, created a new style in the css called bodytext with 12pt Arial, double line spacing. I then highlight the text in the content I want to have that style, then double click on bodytext in the Style and Formatting pane. It does not work. What I have to do is manually change the style of the text in the Design Editor every time.
    When inserting my png files, why does RoboHelp display them at a much smaller size in the browser (IE10)?
    Thanks again gentlemen. Sorry to be so new at this, but I am trying to learn as quickly as I can.
    Cheers!

  • Hover style not applying on text

    Hello,
    I have created a manual menu (not the one that muse creates automatically) and tried to apply hyperlink styles to it.
    Not working at all. I have done this before without issues. Would appreciate any help.
    On the other hand I just wanted to ask if it is normal from adobe support chat to ask about sharing my screen.
    I was chatting yesterday and was asked to do so, which I didn't. Was asking the same question, but chat suddenly was canceled
    and didn't have any answer.
    Thanks for any help,
    Ignacio

    Hi
    First of all apologies for the inconvenience you faced on the chat.
    To confirm you with the screen sharing option, our technical team members may seek for your permission to take control of the screen ( via adobe connect session) so that they my look into the issue you facing with the Adobe Muse application. In this case, we always recommend the customers to remain in front of the screen while the technical team member is working/investigating the issue.
    Please note that due to security reasons none of the technical team member is authorized to take control of the screen without customer's permission or work in customer's absence.
    Coming to the issue you have reported, Could you please elaborate the query in detail? Also please share the screenshot of the settings you have made for the menu along with the site URL , so that I may look into the issue.
    Looking forward to your reply
    Regards

  • Problem with footer in table style not applying paragraph style... or just me?

    I'm having a niggling problem making a table style with cell/paragraph styles for the header, body, and footer respectively. I want to make it as simple as possible for other users but one thing keeps tripping me up. I'll try and describe with screenshots. I'm using InDesign CS5 on Windows 7.
    I have a table style set up with cell styles for the header, body, and footer, and paragraph styles for each as well. Say I'm converting a list of generic text to this table:
    i convert it to my table style. The body style is a numbered list:
    I convert the header to an, err, Header. The cell applies the header paragraph style as I should expect:
    I convert the footer likewise, but it maintains the Body text paragraph style as an override!
    So naturally I clear the override and it works fine. But of course, I'd rather it acted like the header row. I can't work out where the override on the footer comes from and why it operates differently in this respect to the header row. There is nothing different about how the styles are constructed. Have I made a mistake somewhere, or is this correct behaviour I'm misinterpreting, or something...?
    edit: Here is the file, if that will help:
    https://www.dropbox.com/s/4kzgui1itaskuvz/strip%20list%20test.indd

    Hi,
    I was able to reproduce the issue you are facing.
    I will be logging a bug for this and it would be investigated.
    Thanks a lot for reporting the problem!!
    Javed

  • Styles not applied after uploading [was: What did I do wrong here?]

    oK  I know this has something to do with my style.css file but I can't figure out what.  When I view this landing page I created in dreamweaver in FF it looks perfect.  But when I upoaded it, it lost the formatting.  What is the problem here and how can I fix it?
    http://www.bosshi.com/castleresorts/
    [Subject line edited by moderator to indicate what the thread is about]

    Hi
    If you look at this link, you will see it is pointing to the css file on your hard disk, not on your site.
    <link href="file:///C|/Documents and Settings/Daniela/My Documents/Business/Castle Resorts/501x/style.css" rel="stylesheet" type="text/css" />
    PZ

  • CS3: Applying Object styles not always consistent

    Hello,
    I have a number of Object Styles, each of which have different Paragraph Styles called out. In turn, each of these Paragraph Styles calls out different fonts, font styles and sizes.
    Most of the time I can click on a text frame and all the parameters in the Object style are applied--just as it is supposed to be.
    But sometimes the font that the text is supposed to change to does not get applied. This seems to be inconsistent but there is probably an underlying order to it that I do not see.
    So why would an Object style not apply the Paragraph style that is called for in the Object style options?
    Thanks,
    Tom

    I now see the problem, though I do not know the solution.
    If I open up a new document and create a text frame, the font is that old ugly but familiar Times-Roman 12 point.
    But if I open up the template where I have many object, paragraph and character styles, one of each of these is already selected. I can either see this by opening the respective panels or above in the control panel. In fact, any text frame I create always has a top text inset.
    So my Preferences in general are OK and I'd rather not dump them. The problem is that styles are already selected upon opening this one ID file. How do I turn that off?
    In  answer to a question above, I do not simply redo the old Quark file, now in ID. I have a series of styles that are just much easier to apply in a separate ID file, rather than reinventing them in the Quark-to-ID file.
    Thanks for your questions and ideas. They helped me probe this deeper. Now I just need a solution to what I think is a simple problem (still eludes me tho!)
    Tom

  • Changes on code editor code style are not applied on restart

    Jdeveloper 11.1.1.3.0
    Tools > Preferences > Code Editor > Code style > Edit > Modify "Indentation Size" > OK > OK > Close Jdev > Open Jdev => modified "Indentation size" not applied.
    Any solution?

    hi user474075
    I have noticed something similar for which I have created service request 3-1764420131 ,
    which resulted in bug 9740870 , "CODE STYLE USE TAB CHARACTER ISSUE"
    for which "... We are waiting for the review process of the bug to be completed. ... "
    So, if you can create your own service request (at http://support.oracle.com ) and refer to bug 9740870 that might speed things up.
    (tip : You can use "Your Control Panel" to make your name visible in forum posts.)
    regards
    Jan Vervecken

  • Clicking a Paragraph Style Does Not Apply Style to Text

    I just switched from a PC to a brand new MacBook Pro (OSX Lion 10.7), and I bought InDesign CS5.5. I have been using CS4 on a PC for a couple of years and had no issues. For some reason, I cannot apply Paragraph Styles by placing my cursor in the text and clicking the Paragraph style. It highlights the clicked style for a moment, and then de-highlights all the styles, but does not apply any changes. The only way I can apply a Paragraph Style right now is by right clicking the style and selecting "Apply..." from the drop down menu. It's very puzzling. I was wondering if anyone had any experience with this. I also have Microsoft Office: Mac 2011 installed on the laptop if that makes a difference to anyone. Any help would be greatly appreciated, since I typeset and edit for my living, and this problem is slowing me down a bit.

    Neither. Let's say I click into a paragraph. The current style will be highlighted. If I click on another style (or even attempt to re-apply the same style by clicking on it in the styles pane), it momentarily highlights the new style, then flashes a little bar underneath (like the one that shows up if I were to try to re-organize the styles list by dragging a style to a different pace in the styles list), then all the styles become unselected, but no changes have been applied to the paragraph in question. Very definitely not normal. It is almost as if the pane assumes that I am attempting to drag the style even when I am merely clicking on it. Very weird.

Maybe you are looking for

  • MR11 for document currency zero

    Hello please tell me if clearing using MR11 be done for documents in different line items in PO where value in document currency equals to zero but total value in local currency is not equal to zero. thanks in advance

  • Modified Workflow Stuck on In-Progress

    I have a modified Approval Workflow where I send emails out to notify the end user when the due date is approaching etc. nothing really fancy about it. I also email when a document has been approved and is rejected. For the Task form I modified it so

  • Verify/Repair permissions dimmed

    Disk utility/verify/repair permissions are dimmed - maybe resulting from some new programmes downloaded recently. I have been able to verify/repair disk in installation option but this has not resolved the problem. All appears to work but obviously I

  • Why does my Firefox continue to hang?

    I've really had it up to here with Firefox hanging/freezing. Just like many others have posted in the help forums, after leaving my browser open for a few days, Firefox begins to hang every 10-12 seconds, for a few seconds at time. It doesn't matter

  • FORM16 in Portal ESS throws error message

    Hi All,        While trying to click on FORM16 in Portal ESS, it throws below error.        "No data has been found for the specified selection."        Required permissions have been provided ADS is also configured.        while executing  t-code :h