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:
Set the same color for all the buttons of a panel

Subject: Set the same color for all the buttons of a panel

From: Camille Couzi

Date: 23 Aug, 2010 15:52:04

Message: 1 of 3

Hi everybody!!!
is there a simple way to set a color (background and foreground) for all the buttons of a panel? (instead of setting one by one the colors of all the buttons in the panel...

Thank you a lot!

Camille.

Subject: Set the same color for all the buttons of a panel

From: Walter Roberson

Date: 23 Aug, 2010 16:34:09

Message: 2 of 3

On 23/08/10 10:52 AM, Camille Couzi wrote:

> is there a simple way to set a color (background and foreground) for all
> the buttons of a panel? (instead of setting one by one the colors of all
> the buttons in the panel...

After they have been constructed:

set(findobj(PanelHandle, 'Type', 'uicontrol', 'Style', 'pushbutton'),
<properties to set>)

Subject: Set the same color for all the buttons of a panel

From: Camille Couzi

Date: 23 Aug, 2010 16:45:22

Message: 3 of 3

Walter Roberson <roberson@hushmail.com> wrote in message <5qxco.66831$f_3.13519@newsfe17.iad>...
> On 23/08/10 10:52 AM, Camille Couzi wrote:
>
> > is there a simple way to set a color (background and foreground) for all
> > the buttons of a panel? (instead of setting one by one the colors of all
> > the buttons in the panel...
>
> After they have been constructed:
>
> set(findobj(PanelHandle, 'Type', 'uicontrol', 'Style', 'pushbutton'),
> <properties to set>)

Thank you walter!

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