Format selected tab text?
Posted: Sat Feb 02, 2008 10:28 pm
I looked at the SeedCode_Tabs_1Names custom function and I think this is the place to start to solve this question. I want the text to change to red when I select a tab, or a sub-tab.
I tried to make a couple changes but I didn't get the result I wanted. Is this the place to start, or should I bark up another tree.
I made the following changes to the case statement but the text only changes to red when the tabs line up.
Case (
Rep ≤ 199 ;
// ------------------------------ Repetition 1 - 199 represent the top level (level 1) tabs.
TextColor (
SeedCode_GetValueStrict ( MiddleValues ( $$Level1TabSetContents ; Rep ; 1 ) ; "TabName" ) ;
If ( $$ActiveTabNumber = Rep ; RGB(255;0;0) ; "" ) ) ;
Rep ≤ 299 ;
// ------------------------------ Repetition 201 - 299 represent the second level (level 2) tabs.
TextColor (
SeedCode_GetValueStrict ( MiddleValues ( $$Level2TabSetContents ; Rep - 200 ; 1 ) ; "TabName" ) ;
If ( $$ActiveTabNumber = Rep -200 ; RGB(255;0;0) ; "" ) ) ;
Rep ≤ 399 ;
// ------------------------------ Repetition 301 - 399 represent the lowest level (level 3) tabs.
TextColor (
SeedCode_GetValueStrict ( MiddleValues ( $$Level3TabSetContents ; Rep - 300 ; 1 ) ; "TabName" );
If ( $$ActiveTabNumber = Rep - 300; RGB(255;0;0) ; "" ) ) ;
When I select the Week view in Calendar, I'd like Week and Calendar to be red. With the changes I did above, Projects and Week are red.
Hope that makes sense.
Thanks for the help.
I tried to make a couple changes but I didn't get the result I wanted. Is this the place to start, or should I bark up another tree.
I made the following changes to the case statement but the text only changes to red when the tabs line up.
Case (
Rep ≤ 199 ;
// ------------------------------ Repetition 1 - 199 represent the top level (level 1) tabs.
TextColor (
SeedCode_GetValueStrict ( MiddleValues ( $$Level1TabSetContents ; Rep ; 1 ) ; "TabName" ) ;
If ( $$ActiveTabNumber = Rep ; RGB(255;0;0) ; "" ) ) ;
Rep ≤ 299 ;
// ------------------------------ Repetition 201 - 299 represent the second level (level 2) tabs.
TextColor (
SeedCode_GetValueStrict ( MiddleValues ( $$Level2TabSetContents ; Rep - 200 ; 1 ) ; "TabName" ) ;
If ( $$ActiveTabNumber = Rep -200 ; RGB(255;0;0) ; "" ) ) ;
Rep ≤ 399 ;
// ------------------------------ Repetition 301 - 399 represent the lowest level (level 3) tabs.
TextColor (
SeedCode_GetValueStrict ( MiddleValues ( $$Level3TabSetContents ; Rep - 300 ; 1 ) ; "TabName" );
If ( $$ActiveTabNumber = Rep - 300; RGB(255;0;0) ; "" ) ) ;
When I select the Week view in Calendar, I'd like Week and Calendar to be red. With the changes I did above, Projects and Week are red.
Hope that makes sense.
Thanks for the help.