MathGroup Archive 2006

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

Search the Archive

Re: Left Justification in a button

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64654] Re: Left Justification in a button
  • From: bghiggins at ucdavis.edu
  • Date: Sat, 25 Feb 2006 02:53:14 -0500 (EST)
  • References: <dtm76b$hvm$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

David,

One possibility is to get rid of the ButtonFrame which seems to block
the GridBox option ColumnAlignments. Then you can embellish the gridbox
with a frame and use StyleBox to give it a background color. For
example

CellPrint[Cell[BoxData[StyleBox[GridBox[{{ButtonBox["this is text",
ButtonFrame -> "None"]}},  ColumnWidths -> 20, ColumnAlignments ->
Left, GridFrame -> True], Background -> GrayLevel[0.9]]], "Text",
FontWeight -> "Bold ", FontFamily -> "Helvetica"]]

Cheers,

Brian


  • Prev by Date: autogenerated packages carriage returns and line feeds
  • Next by Date: Re: 3D Graphics suggestions?
  • Previous by thread: Left Justification in a button
  • Next by thread: 3D Graphics suggestions?