MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Styling the selected Tab's label in TabView


Hi,

> It seems that you can't set the LabelStyle of individual tabs in a TabView.

What is wrong with:

labels = {"Bill", "Susan"};
DynamicModule[{selected},
 TabView[Table[
   With[{i = i},
    Style[labels[[i]],
      FontWeight ->
       Dynamic[If[i === selected, Bold, Plain]]] -> ("Hello " <>
       labels[[i]] <> "!")], {i, Length[labels]}], Dynamic[selected]]]

Which version are you using?

hth,

albert


  • Prev by Date: Re: Joust in Mathematica
  • Next by Date: Re: Minimize goes into infinite loop?
  • Previous by thread: Re: Styling the selected Tab's label in TabView
  • Next by thread: Re: Styling the selected Tab's label in TabView