Problems with the static text box of the GUI

2 ビュー (過去 30 日間)
Silvia
Silvia 2019 年 11 月 8 日
コメント済み: Silvia 2019 年 11 月 25 日
Hello,
I'm having problems showing my string in the static text box.
I only want to show my directory in the text box. But if it's too long I would like to see only the part that fits in one line. The problem is that the directory is cut and part is shown on another line.
I have tried the textwrap option but doesn´t work. And I also have de MAX_MIN <= 1.
Please, any help?
Thank you
S

回答 (1 件)

Urmila Rajpurohith
Urmila Rajpurohith 2019 年 11 月 20 日
Assuming that you want entire directory to be displayed in a single line.
To achieve this, you can adjust the Graphical layout (grid portion) of the GUIDE figure window by dragging it with the option provided in bottom right.
And you can change the dimensions of static Text box with the help of dragging options provided.
Refer the attachments.
  1 件のコメント
Silvia
Silvia 2019 年 11 月 25 日
Thank you very much for your answer.
I don't need the entire directory to be displayed. In fact, I only want to see the text that fits in one line. For example, in the image attached we can see par of the directory in a second line, I'd like to see only the part that fits in the first line. I don't want to change the size of the text box because another directory can be display so that won't solve the problem if the new directory is longer.
Thank you very much for your help

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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by