Can the background of "Text Area" be transparent?
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Wael Wanis
il 10 Ott 2019
Commentato: Wael Wanis
il 17 Ott 2019
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/242120/Untitled.jpeg)
1 Commento
Adam Danz
il 10 Ott 2019
You can print text on axes with transparent background but it won't have a scroll bar.
Risposta accettata
J. Alex Lee
il 11 Ott 2019
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!