Borrar filtros
Borrar filtros

Want to make label scrollable in MATLAB app designer.

12 visualizaciones (últimos 30 días)
Ravish T
Ravish T el 4 de Ag. de 2022
Respondida: Amit Dhakite el 9 de Jun. de 2023
app.xyzLabel.text = 'abcdefghijklmnopqrstuvwxyz';
Here, I have enabled 'wordWrap' and I have limited position bound. So the text is exceeding the boundary. The letters which are outside the box are not visible. I want to make the box scrollable just like vertical scrolling of of table. Can you help me out?
  1 comentario
Kevin Holly
Kevin Holly el 4 de Ag. de 2022
Editada: Kevin Holly el 4 de Ag. de 2022
Is there a reason why you are not using the Text Area uicomponent?

Iniciar sesión para comentar.

Respuestas (1)

Amit Dhakite
Amit Dhakite el 9 de Jun. de 2023
Hi Ravish,
"uilabel" are not scrollable, they can only be clipped.
If you want vertical scrolling, you can utilize Text Area uicomponent, as suggested by Kevin.
However, if you want to make that horizontally scrollable, you can use HTML uicomponent. It will automatically become scrollable with some long strings.
To know more about these components, kindly refer to the following links:
  1. uitextarea: https://www.mathworks.com/help/matlab/ref/uitextarea.html
  2. uihtml: https://www.mathworks.com/help/matlab/ref/uihtml.html

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by