List box Value Changed
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nwasinachi
el 22 de Nov. de 2022
Comentada: Voss
el 22 de Nov. de 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')...
||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 comentarios
Image Analyst
el 22 de Nov. de 2022
I can't even get it to display the tabs. When I run it, they're chopped off. Look:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1202568/image.png)
You see the tabs in Design View but when you actually run it the top part of the figure is chopped off!
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!