Adding dropdown option from GUI in App Designer

조회 수: 2 (최근 30일)
EnergyLights
EnergyLights 2019년 7월 11일
댓글: TADA 2020년 6월 12일
Is there a way to permanently add another option to a dropdown menu without having to go to the code? I will be getting objects periodically that I need to add to the list of options and I wonder if there is a way to add them from the app.
I was thinking about creating a character vector that can be modified through the gui and then make this the input to dropdown.Items. The problem is that from the codeview of my app, that is not a line of code I can modify.
The other option I thought of was activating the "allow users to type in text" function. But this won't remember the options that are typed in for future uses of the dropdown, which is something I would need.
Does anybody know how I can do it?
Thanks!

채택된 답변

TADA
TADA 2019년 7월 11일
I would put the options in a text file. Then load it during startup
  댓글 수: 7
ahmad salim
ahmad salim 2020년 6월 11일
Hi there,
I am new to appdesigner, and for some reason I can't edit the grayed out code in the code view of my MatLab app to make the changes above. Any idea how I can edit the code? Thank you.
TADA
TADA 2020년 6월 12일
I think it would be best if you post a new question with this whole new problem

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by