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 using multi images and image acting as a pushbutton

Subject: GUI using multi images and image acting as a pushbutton

From: Nick

Date: 25 Nov, 2009 22:09:18

Message: 1 of 3

When I am creating my GUI I can create an axes that can act as a pushbutton. However, when I load an image to become the axis it no longer acts as a pushbutton.
I am wondering if there is some way to make my image act as a pushbutton.
Also when I have many axes acting as images and run my GUI they load slow and show the axis for a split second. How can I make this load faster and make the axis never show.

Here is the code I am using:

axes_H = findobj('Tag','axes');
axes = imread('CloseOut.jpg');
axes(axes_H);
image(axes);
axis off;
set(axes_H,'Tag','axes');
function axes_ButtonDownFcn(hObject, eventdata, handles)
close all;

Subject: GUI using multi images and image acting as a pushbutton

From: Nick

Date: 25 Nov, 2009 22:29:19

Message: 2 of 3

Or for the pushbutton part: Is there a way to put a pushbutton behind an image and it still work.

Subject: GUI using multi images and image acting as a pushbutton

From: Steven Lord

Date: 29 Nov, 2009 00:18:55

Message: 3 of 3


"Nick " <nichmoor@utm.edu> wrote in message
news:hek9ue$2h6$1@fred.mathworks.com...
> When I am creating my GUI I can create an axes that can act as a
> pushbutton. However, when I load an image to become the axis it no longer
> acts as a pushbutton.
> I am wondering if there is some way to make my image act as a pushbutton.
> Also when I have many axes acting as images and run my GUI they load slow
> and show the axis for a split second. How can I make this load faster and
> make the axis never show.

http://www.mathworks.com/support/solutions/en/data/1-1B03X/?solution=1-1B03X

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

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