poster
2019-12-10, 20:41
我正在使用指南在matlab中创建GUI。它是非阻塞的(不调用uiwait )。关闭gui窗口后,我想执行一些清理代码。
是否应该类似于指南为我创建的gui_OpeningFcn模板定义的gui_ClosingFcn回调?
回答:
图形窗口具有'DeleteFcn'属性 (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#DeleteFcn) ,该属性 (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#DeleteFcn)定义了在关闭/删除窗口时将运行的回调函数。您可能会用它来进行清理。
更多&回答... (https://stackoverflow.com/questions/3000564)
是否应该类似于指南为我创建的gui_OpeningFcn模板定义的gui_ClosingFcn回调?
回答:
图形窗口具有'DeleteFcn'属性 (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#DeleteFcn) ,该属性 (http://www.mathworks.com/access/helpdesk/help/techdoc/ref/figure_props.html#DeleteFcn)定义了在关闭/删除窗口时将运行的回调函数。您可能会用它来进行清理。
更多&回答... (https://stackoverflow.com/questions/3000564)