From: Shabnam Shaikh on
hi experts...
i wanna put an image on my push button like an arrow image....can u please tell me whats is the procedure of placing an image on it...What property should i change??
From: ImageAnalyst on
On Apr 11, 10:48 pm, "Shabnam Shaikh" <pearlfigh...(a)yahoo.com> wrote:
> hi experts...
> i wanna put an image on my push button like an arrow image....can u please tell me whats is the procedure of placing an image on it...What property should i change??
===================================================

Possibly might help:
http://undocumentedmatlab.com/blog/button-customization/

http://undocumentedmatlab.com/blog/spicing-up-matlab-uicontrol-tooltips/
From: Doug Schwarz on
In article <hpu1l3$lmv$1(a)fred.mathworks.com>,
"Shabnam Shaikh" <pearlfighter(a)yahoo.com> wrote:

> hi experts...
> i wanna put an image on my push button like an arrow image....can u please
> tell me whats is the procedure of placing an image on it...What property
> should i change??

Here's an example from one of my functions:

uparrow = [ ...
' 0 ';
' 000 ';
'00000 ';
' 0 ';
' 0 ';
' 0 ';
' 000000'];
lut(double(' 01')) = [NaN 0 1];
uparrow_im = repmat(lut(uparrow),[1 1 3]);
up_dir_but = uicontrol('Style','pushbutton',...
'Position',[240 335 20 20],...
'CData',uparrow_im);

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.