/How to get an EasyGUI label to a new line?
Mostra commenti meno recenti
In EasyGUI, when you create a label, is there any way to make the label go to a new line when it hits the end of the panel or window rather than the panel/window automatically change its width?
My labels are only going in a single line, and the panel width is automatically adjusting to a wider width.
I've tried adding char(10) in my string and \n, but neither work in the EasyGUI interface.
Thank you for your help.
Risposte (2)
Chan Chon U
il 11 Giu 2014
Modificato: Chan Chon U
il 11 Giu 2014
myGui = gui.autogui;
gui.label(sprintf('Line #1\nThe second line.\nAnd finally a third line.'));
Please select as accepted answer if it works for you
Jin Park
il 5 Giu 2017
0 voti
You can create your multi-line text in another text editor and just copy&paste into the GUI label. Works just fine if you have a static label text that you don't need to generate.
Categorie
Scopri di più su Language Support in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!