How to get multi-line text in GUI edit text ?

30 visualizaciones (últimos 30 días)
Mohamad
Mohamad el 2 de Mayo de 2018
Comentada: Mike D. el 19 de Abr. de 2020
I get this warning on matlab GUI when using edit text Warning: Single line Edit Controls can not have multi-line text So how to get multi-line text in GUI edit text ?

Respuesta aceptada

Jan
Jan el 2 de Mayo de 2018
Editada: Jan el 2 de Mayo de 2018
To convert the GUI element from a "single line edit control" to a "multi-line edit control", set "Max-Min>1", see doc uicontrol (link):
set(handles.edit7, 'Min', 0, 'Max', 2);
Or apply the corresponding changes in GUIDE.
By the way, I really do like this forum, but let me mention that you get a sufficient answer even faster, if you ask an internet search engine for "Matlab multi-line edit control". Searching at first is frequently more efficient than posting a question and waiting for somebody to write an answer.
  1 comentario
Mike D.
Mike D. el 19 de Abr. de 2020
This puts a vertical scroll bar on the edit control box, but what if I also wanted a horizontal scroll bar and allow the text to extend beyond the width of the edit box?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by