Borrar filtros
Borrar filtros

How to modify the text visibility in a Gui that created using App Designer

11 visualizaciones (últimos 30 días)
Dear Coder,
I have develop a gui using AppDeveloper.
In a separate main.m file, I would like to display the GUI and change the visibility of a Label. Say the component having name of app.Label.
If using GUIDE, I know the command to achieve this will be
But having migrated to App Developer, the command is not working.
Some method in the net show that the code should be something like below, however, its is not working for my case.
app.Label.Visible = 'off'
Appreciate if someone can show which part i do wrong

Respuesta aceptada

Ajay Kumar
Ajay Kumar el 21 de En. de 2020
Editada: Ajay Kumar el 21 de En. de 2020
What is the exact name of the component? I would suggest you to rename it if its only Label.
For example, if you rename it to Component1EditField, then to change the visibility, you can use:
app.Component1EditFieldLabel.Visible = 'off';
  6 comentarios
balandong el 22 de En. de 2020
Hi Ajay,
Thanks for the suggestion, it work like charm.

Iniciar sesión para comentar.

Más respuestas (0)


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


Community Treasure Hunt

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

Start Hunting!

Translated by