Enable / disable EditText in APP Designer

Hello all !,
I am looking for a way to enable / disable a text field in app designer, while i am in the app
this is the code i am using,
if app.ControlStrategy.Value == Char('Condition')
set(app.Name_of_Texte_Field,'enable','off')
else
set(app.Name_of_Texte_Field,'enable','on')
end
I am looking for a way to do instantaniously while the app is runing.
thank you !

 Respuesta aceptada

Mario Malic
Mario Malic el 28 de Ag. de 2020
Editada: Mario Malic el 28 de Ag. de 2020
You might not see the FieldLabel in your component browser, right click there and tick the option 'Enable component labels...'
app.Name_of_Texte_Field.Enable = 0; % or 'off' or 'false' This will only disable the input field
app.Name_of_Texte_FieldLabel.Enable = 0; % This will disable the text that comes in front of the field

1 comentario

Nitin Phadkule
Nitin Phadkule el 14 de Jun. de 2021
app.Name_of_Texte_FieldLabel.Editable = 0; will be better because app.Name_of_Texte_FieldLabel.Enable = 0;makes a transparent cover over text

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.

Preguntada:

el 13 de Jul. de 2020

Comentada:

el 14 de Jun. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by