MATLAB Answers

Enable / disable EditText in APP Designer

18 ビュー (過去 30 日間)
Khalala Mamouri
Khalala Mamouri 2020 年 7 月 13 日
編集済み: Mario Malic 2020 年 8 月 28 日
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')
I am looking for a way to do instantaniously while the app is runing.
thank you !

  0 件のコメント



Mario Malic
Mario Malic 2020 年 8 月 28 日
編集済み: Mario Malic 2020 年 8 月 28 日
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

  0 件のコメント


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by