How to put symbols in GUI static textbox?

조회 수: 3 (최근 30일)
Csaba
Csaba 2017년 12월 16일
편집: Csaba 2017년 12월 17일
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?

채택된 답변

Walter Roberson
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
Walter Roberson 2017년 12월 17일
GE = char(hex2dec('2265'));
test = uicontrol('Style','text','String', GE)
Works for me in R2017b on OS-X.
Csaba
Csaba 2017년 12월 17일
편집: Csaba 2017년 12월 17일
Thank you again, it really works for me too. (Anyway, the need of this workaround is funny).
Thanks,

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by