PropertyInspector does not list anyting like 'edgecolor', 'LineStyle', 'Shadow' etc that one would think controlled this feature. I can see that some of the other GUIDE elements DO have a shadow property, but not the pushbutton.
An alternate solution that could work for me is to make a button that is entirely clear / invisible. I looked at the background color property and "none" was not a choice.
Any ideas?
I'm a little curious of what the point of making an invisible button would be... but regardless, it happens that Yair Altman just wrote an article about this very issue:
http://undocumentedmatlab.com/blog/borderless-button-used-for-plot-properties/
The reason is that I want to record where users click on the screen and response differently based on where they click; without having a visible target.
uicontrol buttons are java buttons... it's just a different command that makes them. But it sounds like what you really want might be just a figure buttondownfcn, then use get(gcf,'currentpoint').
--------------------------------------
Why not use an axes control and use ginput to find where they clicked?
Customization of uicontrol buttons, including the issue of changing or removing the border, was discussed here: http://UndocumentedMatlab.com/blog/button-customization/
Yair Altman
http;//UndocumentedMatlab.com
ImageAnalyst - you're rushing into an open door. Of course I agree with you that there are better ways to determine where a user clicked. I'm surprised you'd think otherwise, knowing me as you do...
In my answer above, I merely answered the specific question of how to remove a uicontrol's borders. Then again, I guess I could have clarified my answer a bit more, to emphasize this point.
Yair Altman
http;//UndocumentedMatlab.com