Text-border color in GUIDE

Hi,
How can I set border color for static text?
Thanks

댓글 수: 1

john
john 2012년 3월 13일
set(handles.text5,'EdgeColor','black','LineStyle',':').....but I get error "There is no 'EdgeColor' property in the 'uicontrol' class." My version is 7.12.0.635 (R2011a).....it can be a problem?

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
Jan 2012년 3월 13일

1 개 추천

The error message is sufficient: The is no EdgeColor property for uicontrol's. This mean, that you cannot set a border.
Either use text or draw a rectangle around the static text object.

댓글 수: 1

john
john 2012년 3월 14일
Official in the matlab help, I found this:"
EdgeColor
ColorSpec | {none}
Color of edge drawn around text extent rectangle plus margin. Specifies the color of a box drawn around the text Extent plus the text Margin. For example, the following code draws a red rectangle around text that labels a plot.
Do I have old version of the matlab?

댓글을 달려면 로그인하십시오.

카테고리

태그

질문:

2012년 3월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by