Azzera filtri
Azzera filtri

GUI - uibuttongroup border color problem

2 visualizzazioni (ultimi 30 giorni)
Joseph
Joseph il 1 Ago 2013
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

Risposte (0)

Categorie

Scopri di più su Dates and Time in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by