Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Left Justification in a button

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64642] Left Justification in a button
  • From: "David Reiss" <dbreiss at gmail.com>
  • Date: Fri, 24 Feb 2006 00:19:54 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Well, I have tried and tried and I suspect that I am missing something
simple even though I've built lots and lots of front end stuff.  What I
want to do simply is to have the text of a button be left justified.

Here is an example:

CellPrint[Cell[BoxData[
    GridBox[{{ButtonBox["this is text"]}},
      ColumnWidths -> 20]
    ], "Text", FontWeight -> "Bold",
   FontFamily -> "Helvetica"]]

where the result is centered button text.

I haven't been able to find a way to use TextAlignment and its ilk to
make this happen (even in the case where the argument of the ButtonBox
is itself a Cell expression and other gyrations and mystical tricks).

Anyone want to show me that I have missed something simple?  I'd
appreciate that  :-)

Thanks,

David


  • Prev by Date: Re: finding the position of a pattern in list
  • Next by Date: Re: finding the position of a pattern in list
  • Previous by thread: Re: Plot -> axes inversion
  • Next by thread: Re: Left Justification in a button