Change backround colour of pushbutton to black in GUI
2 次查看(过去 30 天)
显示 更早的评论
回答(3 个)
Jan
2014-11-9
What is the "frame color"? You can set the 'backgorundcolor' of buttons. And when I open your FIG file, the buttons are black.
Are you running this on a Mac, where the button colors are controlled by the operating system?
matt dash
2014-11-10
Instead of setting the BackgroundColor property, you can use the CData property to superimpose an image onto your button. (This at least worked on Macs several years ago, i haven't tried it recently) If you can draw the button you want, e.g. in photoshop, you can then import it to use on your button.
As a test, try setting the CData property to zeros(m,n,3) where m and n are the width and height of your button in pixels.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!