0 Replies Latest reply on Aug 10, 2007 9:02 AM by MikeH883

    Tabbar selected color and tab actions

    MikeH883
      Does anyone have a reference of the styles you can apply to each component. I have tried several from the code helper in flex 3 beta and am not able to find the tab color for the selected tab. Surely this is an easy fix. Someone please point me in the right direction... Thanks, Mike

      Also... One other thing.. I can't seem to assign a click action to each tab Is this not possible?. I want to reload my tree in the viewstack when a new tab is selected. I had planned on doing this by creating a different state for each tab, that points to a new dataProvider.

      code snippet:

      <mx:TabBar x="0" y="0" dataProvider="meth_vstack" styleName="customTab" >
      </mx:TabBar>
      <mx:ViewStack x="0" y="38" id="meth_vstack" width="100%" height="100%">
      <mx:VDividedBox label="Definition" width="100%" >
      <mx:HDividedBox width="100%" >
      <mx:Tree height="100%" id="meth_tree" labelField="@label" showRoot="false" dataProvider="{defXMLColl}" />
      <mx:Panel id="props_panel" title="Properties" height="100%" >
      <mx:Label text="Keytask" />
      <mx:Label text="Models" />
      </mx:Panel>
      </mx:HDividedBox>
      <mx:Panel id="desc_panel" title="Description" width="100%" />
      </mx:VDividedBox>
      <mx:Canvas label="Requirements" width="100%" height="100%">
      </mx:Canvas>
      <mx:Canvas label="Design" width="100%" height="100%">
      </mx:Canvas>
      <mx:Canvas label="Construction" width="100%" height="100%">
      </mx:Canvas>
      <mx:Canvas label="Testing" width="100%" height="100%">
      </mx:Canvas>
      <mx:Canvas label="Production" width="100%" height="100%">
      </mx:Canvas>
      <mx:Canvas label="Post Production" width="100%" height="100%">
      </mx:Canvas>
      </mx:ViewStack>

      stylesheet snippet:

      .customTab {
      color:#5E6292;
      textRollOverColor:#DE3435;
      selectionColor:#FFFFFF;

      themeColor:#FFFFFF; (these last two don't seem to be applicable)
      rollOverColor:#FFFFFF;
      }