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:
Pushbutton Shadow

Subject: Pushbutton Shadow

From: Izaskun Azk

Date: 15 Sep, 2008 11:21:01

Message: 1 of 3

Hi!
I have a problem with my matlab gui. I would like to create a pushbutton but i want to remove the pushbutton shadow because i want only to see the image than i have inserted in a button without the button border and the shadow.
How can i do that?

Thanks.

Subject: Pushbutton Shadow

From: Yuri Geshelin

Date: 22 Sep, 2008 14:03:01

Message: 2 of 3

Hi,

Looks like it is impossible in matlab.

To achieve your goal, you can use uitoolbar and uipushtool. But this won't be gui proper. And the pushbutton will be fairly small (although you can insert an image in it).

Yuri

use tool
"Izaskun Azk" <izaskunazkarate@gmail.com> wrote in message <galget$ajh$1@fred.mathworks.com>...
> Hi!
> I have a problem with my matlab gui. I would like to create a pushbutton but i want to remove the pushbutton shadow because i want only to see the image than i have inserted in a button without the button border and the shadow.
> How can i do that?
>
> Thanks.

Subject: Pushbutton Shadow

From: Yuri Geshelin

Date: 22 Sep, 2008 14:13:03

Message: 3 of 3

Hi again,

It just occurred to me, you can still go with gui: instead of 'pushbutton', you can set the style to 'text'. In this case, clicking on the button won't give you the impression that it gets pushed. But this is your conscious desision - to get rid of the shadow.


"Izaskun Azk" <izaskunazkarate@gmail.com> wrote in message <galget$ajh$1@fred.mathworks.com>...
> Hi!
> I have a problem with my matlab gui. I would like to create a pushbutton but i want to remove the pushbutton shadow because i want only to see the image than i have inserted in a button without the button border and the shadow.
> How can i do that?
>
> Thanks.

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