How to display multiple string outputs in a static text box in GUI
Ältere Kommentare anzeigen
Hi, I have a program which outputs strings. However I would like to get all those seperate string output
in a single static text box in GUI. Any suggestions regarding how it can be achieved?
Thanks in advace.
Antworten (1)
Walter Roberson
am 21 Mai 2019
0 Stimmen
Set the 'Max' property of the uicontrol style 'text' to more than 1. The text box will then be able to display a cell array of character vectors.
However, there will be no scroll bar for these characters. In practice it is usually more useful to use a uicontrol style 'edit' with Max greater than 1 and 'enable' set to 'disable' . Such boxes can display multiple rows, and have scroll bars, but cannot be edited.
2 Kommentare
Siddesh chaudhary
am 21 Mai 2019
Bearbeitet: Siddesh chaudhary
am 21 Mai 2019
Walter Roberson
am 23 Mai 2019
handles.YourEditBoxTagGoesHere.String{end+1} = new_content;
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!