Why do the popupmenus/ listbox disappear if i use pushbutton callback ?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
VBBV
el 22 de Jul. de 2018
Comentada: Image Analyst
el 22 de Jul. de 2018
I have GUI, which has few pushbuttons that loads some data into popupmenus and listbox When I click on pushbutton, to reset the content to empty, it makes the popupmenu /listbox disappear. why does it happen? how can I avoid it ?
2 comentarios
Walter Roberson
el 22 de Jul. de 2018
Please do not close questions that have an answer.
Your question is not unclear: you are just asking to do something that cannot be done in MATLAB.
Image Analyst
el 22 de Jul. de 2018
If you're got your answer, and are all done, then you can "Accept" the answer (to give the answerer reputation points and let everyone know it's solved) rather than Close the question.
Respuesta aceptada
Walter Roberson
el 22 de Jul. de 2018
When you set the String property of the popup or listbox to empty, you need to set the Value property to [] at the same time, or else the Value will be greater than the number of strings and it will consider that an error and refuse to draw the box.
2 comentarios
Walter Roberson
el 22 de Jul. de 2018
Basically, you cannot have an empty popup. You can have an empty listbox though.
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps 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!