How do I make a state button's value change due to an auxillary app being closed?
1 次查看(过去 30 天)
显示 更早的评论
I have a state button which displays "connect" and when clicked creates an auxillary application. Once the application is open, the state button displays "connecting".
When the auxillary application closes, what close request callback could I write to make the state button in the main application return to its normal state of displaying "connect"?
I've read through https://uk.mathworks.com/help/matlab/creating_guis/creating-multiwindow-apps-in-app-designer.html already but had no success.
0 个评论
回答(1 个)
Rik
2022-7-22
There is a closereqfcn for the secondary window. That one should have access to the handle to the object in your main window. That means you have to share at least that handle with the secondary window when you create it.
6 个评论
Rik
2022-7-25
Does the second window have to be an AppDesigner app? If not, you can use the advice from this thread to create one from a function (using only code to create either a figure or a uifigure).
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!