Trouble Using Close Function
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!