MATLAB: Making a circular push button

making a circular push button

Hi every body…
I have a problem with guide…
How can I make a circular push button in gui???
is this problem is related to "position" property????
help me please with this problem…
[Merging information from duplicate question]
really I dont have problem in setting image for push buttons but suppose we want
to set a circular image for a push button…
when you do that the edges of the image becomes black and this is not beutiful for gui
please help me know how to set an image for push buttons with figure background
color and overcome this problem…

Best Answer

There is no (documented) method of setting a non-square image for a push-button, and there is no (documented) method of setting transparency for the image.
You would need to fetch the uicontrol background color and set the part of the image outside the circle to be that color and then set the CData property to that adjusted image. Which will not make it a circular push button, just a rectangular push button that appears circular.
Related Question