Multiple lines in "Edit Text" box in GUIDE

Hi,
I'm making a GUI for my program and I wanted to allow multiple lines of text to be entered in an "Edit Text" box (email addresses) which I would then separate and continue with the program. I noticed I am not able to enter multiple lines using the Edit Text box...it just keeps writing on the same line. Is there a way around this? How can i allow the option of multiple lines?

回答 (2 件)

Paulo Silva
Paulo Silva 2011 年 7 月 18 日

6 投票

'edit' – Editable text fields enable users to enter or modify text values. Use editable text when you want text as input. If Max-Min>1, then multiple lines are allowed. For multi-line edit boxes, a vertical scrollbar enables scrolling, as do the arrow keys.

3 件のコメント

Alex
Alex 2013 年 9 月 17 日
Thank you! Very helpful on a not very obvious quirk
Pau Micó
Pau Micó 2017 年 3 月 16 日
Thanks a lot! And yes, it was not so an obvious question!!!
raym
raym 2023 年 3 月 2 日
The string field is not a cell string, but a transposed char mat filled with many blanks.
Thus multiple-line edit is not a very good solution for real text with new-line functionalities.

サインインしてコメントする。

huyen nguyen
huyen nguyen 2018 年 4 月 24 日

0 投票

How to create multiple data in edit text in matlab? help me, please. thank you.

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

タグ

質問済み:

2011 年 7 月 18 日

コメント済み:

2023 年 3 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by