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


Groups > comp.soft-sys.math.mathematica > #6743 > unrolled thread

Color - Appearance of Buttons

Started byJakob Ebner <jakob.ebner@gmail.com>
First post2011-11-25 10:12 +0000
Last post2011-11-26 10:11 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  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

#6743 — Color - Appearance of Buttons

FromJakob Ebner <jakob.ebner@gmail.com>
Date2011-11-25 10:12 +0000
SubjectColor - Appearance of Buttons
Message-ID<janpli$b8o$1@smc.vnet.net>
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

[toc] | [next] | [standalone]


#6748

FromArmand Tamzarian <mike.honeychurch@gmail.com>
Date2011-11-26 10:11 +0000
Message-ID<jaqe17$nhm$1@smc.vnet.net>
In reply to#6743
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web