List box Value Changed

5 views (last 30 days)
Nwasinachi on 22 Nov 2022
Commented: Voss on 22 Nov 2022
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')...
end % simple loop that allows the push button to stay disabled until the person selects an option.
Nwasinachi on 22 Nov 2022
Edited: Nwasinachi on 22 Nov 2022
I just made a modification it should run well now and resize decently
They are that way because of a resizing issue. App designer has a very complicated sizing criteria, so i am unable to use percentages to size the page and using pixels causes my app to lose pushbuttons (not visible on the screen when it is resized). i have been trying different codes to fix that issue but StartFcn makes the other functions non-functional so i had to remove that line of code.
You can still run the app. if you click on NEXT it should proceed to the next tab. If it isnt working please let me know.

Sign in to comment.

Accepted Answer

Voss on 22 Nov 2022
Edited: Voss on 22 Nov 2022
NEXTButton_2 has no Callback (i.e., no ButtonPushedFcn) assigned to it.

Sign in to comment.

More Answers (0)


Find more on Migrate GUIDE Apps in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by