MathGroup Archive 2007

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

Search the Archive

Re: Button[label, action] Change Font?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83601] Re: [mg83568] Button[label, action] Change Font?
  • From: bsyehuda at gmail.com
  • Date: Sat, 24 Nov 2007 04:13:01 -0500 (EST)
  • References: <200711231030.FAA25036@smc.vnet.net>

Hi,
One comment, there is a comma missing in your given example

The following works on my system ("6.0 for Microsoft Windows (32-bit) (June
19, 2007)")

Button[Style["Click Here", FontWeight -> Bold,
  FontFamily -> "Arial Black"], Print[10!]]

On Nov 23, 2007 12:30 PM, Joe Sneed <jsneed at mines.edu> wrote:

> I want to change the font of the button label, but apparently can't do
> this.
>
> Using the "basic example" as input
>
> Button["Click Here" Print[10!]]
>
> obtaining the button with "Click Here" with type face plain, font Ariel.
> I can change the type face from the format menu to obtain type face
> bold. But I can not change the front, even though the corresponding
> expression (below) reveals that the font should be "Ariel Black", this
> face is not displayed.
>
> I can also change the type color, but apparently not the size.
>
> Might there  be some place where some things are set globally that
> overrides this setting?
>
> Cell[BoxData[
> ButtonBox["\<\"Click Here\"\>",
> Appearance->"DialogBox",
> ButtonData->"paclet:ref/Click Here",
> ButtonFrame->"DialogBox",
> ButtonFunction:>Print[
> Factorial[10]],
> Evaluator->Automatic,
> Method->"Preemptive"]], "Output",
> ImageSize->{61, 25},
> ImageMargins->{{0, 0}, {0, 0}},
> ImageRegion->{{0, 1}, {0, 1}},
> FontFamily->"Arial Black",
> FontWeight->"Bold",
> CellLabel->"Out[1]=",
> CellID->23005]
>
> Any help much appreciated....
>
> Joe
> --
>
> Joe Sneed
> Division of Liberal Arts and International Studies
> Colorado School of Mines
> Golden CO USA
> mailto:jsneed at mines.edu
> http://www.mines.edu/fs_home/jsneed/
>
>
>
>
>



  • Prev by Date: Re: Coloring cells
  • Next by Date: Re: Dynamic Timeout
  • Previous by thread: Re: Button[label, action] Change Font?
  • Next by thread: Re: Button[label, action] Change Font?