App Designer - Scrollbar in "Label" feature?

조회 수: 6 (최근 30일)
Wael Wanis
Wael Wanis 2019년 10월 6일
답변: Jacob Pettine 2019년 12월 24일
I am designing a GUI, in the first window, I want to write some instructions and procedures to the user; so I am using "Label" feature and I write everything in it, the problem is that the text is long; it goes outside of the window frame so when I run the GUI, not all the text appears.
Is there a way that a design a scroll bar in the "Label" area so that when the GUI runs, the user can scroll and read all the instructions?
i don't want a push button, that when pushed, the text content changes.
By the way:
I tried using the "Text Area" feature, it contains a scrollbar, however when running the GUI, the text area is editable so the user not only can read the text but overwrite it. When I changed the "Text Area" properties into non-editable, it disabled the scrollbar.
Thanks in advance.

채택된 답변

Harsha Priya Daggubati
Harsha Priya Daggubati 2019년 10월 9일
Hi,
This issue persists in MATLAB R2018b. I suggest upgrading to R2019a version, or follow the workaround provided in the link below.
  댓글 수: 1
Wael Wanis
Wael Wanis 2019년 10월 9일
I updated my MATLAB to R2019b, as you suggested.
I really thought you meant i will find a scrollbar in "Label" feature in the new version, not that in "Text Area" the scroll will work when it is non-editable.
My problem with "Text Area" is that I have an image/logo as the background of the GUI, so the "Label" feature just writes on the image, however "Text Area" insert a white box where the words are written inside, I don't want an opaque box that covers the logo, is there a solution to that?
Thank you by the way ..

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jacob Pettine
Jacob Pettine 2019년 12월 24일
Hopefully this will be an option in the next update (along with making the label text selectable for copying), but until then my solution has been to utilize the label's Tooltip feature with the same text string. You can then hover over the label to view the text. Unlike the label itself, the text in the tooltip is also selectable.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by