How to put symbols in GUI static textbox?
3 次查看(过去 30 天)
显示 更早的评论
I have tried the "Interpreter" property but it does not exist for the static text box in a GUI made by GUIDE. Is there any way to put symbols there?
0 个评论
采纳的回答
Walter Roberson
2017-12-16
No. The String property of uicontrol style text does not support interpreter and also does not support HTML. If you using R2014a or earlier then your symbols there are limited to the characters in positions no greater than 255 in the font you configure.
In R2014b and later, Unicode characters up to position 65535 are supported, provided that your font has them.
The alternative is is to use a uicontrol of style radio or check or push, with enable property set to disable. In that situation you can start the String property with '<html>' and after that you can use HTML 2.0 named entities (but not newer named entities)
3 个评论
Walter Roberson
2017-12-17
GE = char(hex2dec('2265'));
test = uicontrol('Style','text','String', GE)
Works for me in R2017b on OS-X.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!