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: Fri, 3 Apr 2009 20:12:34 -0500 (EST)
  • 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: How to remove all cycles
  • Next by Date: Re: Minimize goes into infinite loop?
  • Previous by thread: Styling the selected Tab's label in TabView
  • Next by thread: Re: Styling the selected Tab's label in TabView