MathGroup Archive 2009

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

Search the Archive

Re: Styling the selected Tab's label in TabView

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98271] Re: Styling the selected Tab's label in TabView
  • From: Albert Retey <awnl at gmx-topmail.de>
  • Date: Sun, 5 Apr 2009 06:32:40 -0400 (EDT)
  • References: <gr4jlk$abk$1@smc.vnet.net>

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