MathGroup Archive 2007

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

Search the Archive

Re: alignment in TabView (v6) labels

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84257] Re: alignment in TabView (v6) labels
  • From: m.r at inbox.ru
  • Date: Sun, 16 Dec 2007 05:37:59 -0500 (EST)
  • References: <fjunak$26f$1@smc.vnet.net>

On Dec 14, 1:59 pm, "Matt Enlow" <matten... at gmail.com> wrote:
> Hi all,
>
> I am trying to use TabView, with my tabs on the left rather than on
> top because my tab labels are long-ish strings. However, it looks like
> TabView automatically centers the tab label on the tab, which does not
> look as good when the tabs are on a side. I'd like to align my tab
> labels on the left, but I don't see an easy way to do that. There may
> not be one. Any ideas?
>
> Thank you,
>
> Matt Enlow
> Newton, MA

If you don't mind specifying explicit label sizes, you can use Pane:

TabView[
 Pane[#[[1]], {45, Automatic}, Alignment -> {Left, Center}] ->
   #[[2]]& /@
  {1 -> 1, "xxxxxxx" -> "xxxxxxx", 3 -> 3},
 ControlPlacement -> Left]

Maxim Rytin
m.r at inbox.ru


  • Prev by Date: My Button Doesn't Work
  • Next by Date: Re: Have I found a bug?
  • Previous by thread: alignment in TabView (v6) labels
  • Next by thread: Re: alignment in TabView (v6) labels