Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

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: [mg84375] Re: alignment in TabView (v6) labels
  • From: David Reiss <dbreiss at gmail.com>
  • Date: Thu, 20 Dec 2007 00:15:43 -0500 (EST)
  • References: <fjunak$26f$1@smc.vnet.net> <fk2vd0$nf2$1@smc.vnet.net>

Hi Matt:

Interestingly enough I just came upon just this need in a project that
I am working on for a client.  Thanks for asking the question!  Have
you thought of any other approaches? Maxim Rytin approach is certainly
quite helpful.

I find that the display of the TabView buttons on the LHS or RHS of
the display is very crude.  There is a much too very prominent drop
shadow, and the curve of the upper and lower boundaries of the tab
column is quite jagged.  Also the text in the tabs will sometimes go
beyond the boundary of the tab and be written into the drop shadow.
Some of these problems are controllable using Maxim's approach.
Another helpful Option to use is the ImageMargins Option to Pane.
This helps to keep the text away from the edges of the tab boundary.


Best regards,

David Reiss (in Arlington MA)





On Dec 16, 5:41 am, m... at inbox.ru wrote:
> 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... at inbox.ru



  • Prev by Date: RE: Timing and Pi
  • Next by Date: Re: FindRoot / Jacobian
  • Previous by thread: Re: alignment in TabView (v6) labels
  • Next by thread: WorkingPrecision and plotting functions