필터 지우기
필터 지우기

Can the background of "Text Area" be transparent?

조회 수: 19 (최근 30일)
Wael Wanis
Wael Wanis 2019년 10월 10일
댓글: Wael Wanis 2019년 10월 17일
I am desiging a GUI and I want to ask (as shown in the following picture) how can I make the background of the "Text Area" transparent? so that the image in the background appears whole.
I tried using "Label" feature instead, it has a transparent background, but it doesn't have a scrollbar and I need a scrollbar.
Untitled.jpg
  댓글 수: 1
Adam Danz
Adam Danz 2019년 10월 10일
You can print text on axes with transparent background but it won't have a scroll bar.

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

채택된 답변

J. Alex Lee
J. Alex Lee 2019년 10월 11일
With R2019b and using the uifigure rather than figure, there is a uihtml() element, which seems to have scroll by default (don't need to wrap in something that additionally sets CSS overflow property)
f = uifigure('Color','r');
h = uihtml(f);
cstr = arrayfun(@(d)sprintf('<p>line %d</p>',d),1:10,'uni',false)
h.HTMLSource = horzcat(cstr{:});
  댓글 수: 8
Wael Wanis
Wael Wanis 2019년 10월 12일
No I couldn't do it because I don't know anything about HTML and I don't find it worthy to learn it just to have a scrollbar in my GUI.
Your file is very good, it is the best solution I have if only i know how to make the HTML file so that I can put my script.
Thank you again.
Wael Wanis
Wael Wanis 2019년 10월 17일
@J.Alex Lee
I want to thank you again, I manage to write my script as a HTML file and I included it in the GUI, it has a transparent background and a scrollbar. This is all I need, thank you.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by