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