List box Value Changed
이전 댓글 표시
This exact function works for my 1st list box i turned off 'enable' and set a condition that forces a selection to be made from list box so the push button is enable, but that isnt working for the other pushbuttons. i have attached the code
function ListBox_3ValueChanged(app, event)
value = app.ListBox_3.Value;
if strcmp(app.ListBox.Value,'Female')|| strcmp(app.ListBox.Value,'Male')||strcmp(app.ListBox.Value,'Intersex')||strcmp(app.ListBox.Value,'Non-conforming')...
||strcmp(app.ListBox.Value,'Gender-fluid')||strcmp(app.ListBox.Value,'Genderqueer')||strcmp(app.ListBox.Value,'Transgender');
set(app.NEXTButton_2,'Visibility','on')
set(app.NEXTButton_2,'Enable','on');
end % simple loop that allows the push button to stay disabled until the person selects an option.
end
댓글 수: 4
Image Analyst
2022년 11월 22일
Your code looks at the selection in ListBox_3 and enables the NextButton_2 and makes it visible if the ListBox_3 is one of those choices. It should work but I don't know what you want it to do or why it doesn't work in some cases. Attach your .mlapp file and tell us what to select/change to demonstrate your problem after you read this:
Nwasinachi
2022년 11월 22일
Image Analyst
2022년 11월 22일
I can't even get it to display the tabs. When I run it, they're chopped off. Look:

You see the tabs in Design View but when you actually run it the top part of the figure is chopped off!
Nwasinachi
2022년 11월 22일
편집: Nwasinachi
2022년 11월 22일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File 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!

