필터 지우기
필터 지우기

GUI - uibuttongroup border color problem

조회 수: 2 (최근 30일)
Joseph
Joseph 2013년 8월 1일
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