GUI - uibuttongroup border color problem

2 次查看(过去 30 天)
Hi,
so I'm using uibuttongroup for a set of radio buttons in a GUI. I'm trying to set the box for the uibuttongroup to have a black, 2D line border. So far I've followed the advice on this page: http://www.mathworks.co.uk/help/matlab/ref/uibuttongroupproperties.html which said to use 'BorderStyle' and 'ForegroundColor' to set the border type to line first of all, and then use 'ForegroundColor' to set the border color to black. So far I've managed to get the border type to be a line, but no matter what I do, the color of it remains white. 'ForegroundColor' doesn't seem to do anything. Here's a copy of the relevant code:
ui.notch = uibuttongroup('Bordertype','line','ForegroundColor',black,
'visible','on','Position',[0.658 0.095 0.11 0.14]);
I've tried setting the border color in a seperate piece of code beneath the one above, I've tried 'black' and black, I've tried the RGB matrix method of [0 0 0] for black, and still nothing!
Any help would be much appreciated!
Thanks, Joe

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by