Trouble Using Close Function
5 views (last 30 days)
Show older comments
Writing a program where the close function will not work in a uimenu.
*function startup *
fig = figure;
File = uimenu(fig,'Label','File');
Exitbutton = uimenu(File,'Label','Exit','Callback',@Exit);
*end *
*function Exit(hObj,event)*
fig = get(hObj,'Parent');
close(fig)
*end *
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!