App Designer - Scrollbar in "Label" feature?

8 views (last 30 days)
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.

Accepted Answer

Harsha Priya Daggubati
Harsha Priya Daggubati on 9 Oct 2019
Hi,
This issue persists in MATLAB R2018b. I suggest upgrading to R2019a version, or follow the workaround provided in the link below.
  1 Comment
Wael Wanis
Wael Wanis on 9 Oct 2019
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 ..

Sign in to comment.

More Answers (1)

Jacob Pettine
Jacob Pettine on 24 Dec 2019
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.

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!