A cancel button, to do nothing
2 次查看(过去 30 天)
显示 更早的评论
I have a gui(called main) through which I open another gui(called config). When I press ok button in the config gui, it performs and operation and the result is updated on the main gui. I want to add a cancel button in my config gui, so that when I press cancel, it should do nothing at all and close the gui.
0 个评论
采纳的回答
Image Analyst
2015-12-18
In the call back for that button, just delete the variable that is the handle to the gui and it will vanish.
3 个评论
Image Analyst
2015-12-18
You never assigned that variable. But you don't need it. Just delete the line.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!