interactive GUI: pup-up menus, list
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on App Building 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!