Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
GUI button color/shape changes

Subject: GUI button color/shape changes

From: Daphne

Date: 27 Dec, 2007 11:46:32

Message: 1 of 7


I just noticed that GUI pushbuttons and togglebuttons
change shape when their background color is modified. The
chage is from a nicely rounded, 3D-ish looking button to a
flattned sharp-edged button.
Any ideas why this is happening and how to avoid it?

Thanks,
Daphne

Subject: GUI button color/shape changes

From: MarkAllenNeil@gmail.com

Date: 20 Feb, 2008 04:16:22

Message: 2 of 7

On Dec 27 2007, 3:46 am, "Daphne " <daphnew_too_nos...@yahoo.com>
wrote:
> I just noticed that GUI pushbuttons and togglebuttons
> change shape when their background color is modified. The
> chage is from a nicely rounded, 3D-ish lookingbuttonto a
> flattned sharp-edgedbutton.
> Any ideas why this is happening and how to avoid it?
>
> Thanks,
> Daphne

Has anyone ever answered this? A very annoying behavior seems to
really limit how attractive a GUI can be in MATLAB.

Mark

Subject: GUI button color/shape changes

From: Daphne

Date: 20 Feb, 2008 09:34:02

Message: 3 of 7


I had gotten a response from Matlab Tech support -
apparently it has something to do with Windows and how it
shows things. No real solution.

Daphne



MarkAllenNeil@gmail.com wrote in message <90686c6e-2fde-
4678-a666-65dd72dff16e@p43g2000hsc.googlegroups.com>...
> On Dec 27 2007, 3:46 am, "Daphne "
<daphnew_too_nos...@yahoo.com>
> wrote:
> > I just noticed that GUI pushbuttons and togglebuttons
> > change shape when their background color is modified.
The
> > chage is from a nicely rounded, 3D-ish lookingbuttonto
a
> > flattned sharp-edgedbutton.
> > Any ideas why this is happening and how to avoid it?
> >
> > Thanks,
> > Daphne
>
> Has anyone ever answered this? A very annoying behavior
seems to
> really limit how attractive a GUI can be in MATLAB.
>
> Mark

Subject: GUI button color/shape changes

From: fburton@nyx.net (Francis Burton)

Date: 20 Feb, 2008 12:01:54

Message: 4 of 7

In article <fpgs6a$b4a$1@fred.mathworks.com>,
Daphne <daphnew_too_nospam@yahoo.com> wrote:
>I had gotten a response from Matlab Tech support -
>apparently it has something to do with Windows and how it
>shows things. No real solution.

Does other software that displays buttons and allows background
colour changes (e.g. QT) suffer from the same problem? I'd have
thought that Microsoft would have fixed it if it was universal.

Francis

Subject: GUI button color/shape changes

From: Daphne

Date: 20 Feb, 2008 20:22:01

Message: 5 of 7


I just found the email response from Matlab support on
this:

"In case you are using Windows XP OS, the issue that you
are seeing is due to the way Java renders buttons in
Windows while in "Windows-XP"
theme. Unfortunately MATLAB does not have much control
over that; consequently there are no workarounds for this
behavior while Windows is set to " Windows-XP" theme. To
maintain uniformity in the rendering process, you can
switch to "Windows-Classic" theme (right-click on an empty
space in the desktop, properties, themes tab"

So apparently if you change the windows theme (so that it
looks kinda squarish) Matlab buttons should look better.
It's a give and take...

Daphne



fburton@nyx.net (Francis Burton) wrote in message
<1203508914.141163@irys.nyx.net>...
> In article <fpgs6a$b4a$1@fred.mathworks.com>,
> Daphne <daphnew_too_nospam@yahoo.com> wrote:
> >I had gotten a response from Matlab Tech support -
> >apparently it has something to do with Windows and how
it
> >shows things. No real solution.
>
> Does other software that displays buttons and allows
background
> colour changes (e.g. QT) suffer from the same problem?
I'd have
> thought that Microsoft would have fixed it if it was
universal.
>
> Francis

Subject: GUI button color/shape changes

From: fburton@nyx.net (Francis Burton)

Date: 21 Feb, 2008 19:55:50

Message: 6 of 7

In article <fpi259$51h$1@fred.mathworks.com>,
Daphne <daphnew_too_nospam@yahoo.com> wrote:
>"In case you are using Windows XP OS, the issue that you
>are seeing is due to the way Java renders buttons in
>Windows while in "Windows-XP"

Ah, so Java's fault not Windows'.

>theme. Unfortunately MATLAB does not have much control
>over that; consequently there are no workarounds for this
>behavior while Windows is set to " Windows-XP" theme. To
>maintain uniformity in the rendering process, you can
>switch to "Windows-Classic" theme (right-click on an empty
>space in the desktop, properties, themes tab"
>
>So apparently if you change the windows theme (so that it
>looks kinda squarish) Matlab buttons should look better.
>It's a give and take...

Good to know - thanks for the tip!

Francis

Subject: GUI button color/shape changes

From: Farris

Date: 18 Jul, 2011 21:03:08

Message: 7 of 7

I'm working on a Mac and I'm encountering the same issue. Also, if you are able to grab the precise color that is used at setup, it will change back to the rounded corner look.


"Daphne " <daphnew_too_nospam@yahoo.com> wrote in message <fl03ao$5l0$1@fred.mathworks.com>...
>
> I just noticed that GUI pushbuttons and togglebuttons
> change shape when their background color is modified. The
> chage is from a nicely rounded, 3D-ish looking button to a
> flattned sharp-edged button.
> Any ideas why this is happening and how to avoid it?
>
> Thanks,
> Daphne

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us