Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6748

Re: Color - Appearance of Buttons

From Armand Tamzarian <mike.honeychurch@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Color - Appearance of Buttons
Date 2011-11-26 10:11 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jaqe17$nhm$1@smc.vnet.net> (permalink)
References <janpli$b8o$1@smc.vnet.net>

Show all headers | View raw


On Nov 25, 9:12 pm, Jakob Ebner <jakob.eb...@gmail.com> wrote:
> If I change the Background of a button to a different color it has
> this "old" M5 style, see the difference between
> Button["test", None]
> Button["test", None, Background -> Orange]
>
> Is there a way to keep the styling for different colors and/or to
> change the color when you hover over the button?
>
> Jakob Ebner

This will do it:

Mouseover[
Button["Click Here", Print[10!], Background -> Red],
Button["Click Here", Print[10!], Background -> Blue]
]

Mike

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Color - Appearance of Buttons Jakob Ebner <jakob.ebner@gmail.com> - 2011-11-25 10:12 +0000
  Re: Color - Appearance of Buttons Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-11-26 10:11 +0000

csiph-web