Text-border color in GUIDE

24 次查看(过去 30 天)
john
john 2012-3-13
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
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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by