interactive GUI: pup-up menus, list
Mostrar comentarios más antiguos
Hi,
I am making a small interface where the objects interact with each other. Specifically: I have 2 popup menus and a list, and some buttons. - I populate the popup menus at the beginning. When user selects one item in one of the menus, the other changes the items accordingly (only items relevant to the selected) and vice versa. - When user pushes button "Select", the data from popup menus are added to the list. - When user selects an item in the list and clicks on button "remove", the item will be removed.
I can read the data and stuff them into handles, even into the menus and the listbox, but I don't know how to re-generate the menus/list. When I put popupmenu1_CreateFcn into a callback of popupmenu2, it changes the popupmenu2 instead of 1. The same, when I put listbox_CreateFcn into the callback of a button, it will stuff the things into the button. How can I say "now refresh the (relevant) menu/list"?
Thanks,
Jana
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre App Building en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!