How do I make a state button's value change due to an auxillary app being closed?
1 view (last 30 days)
Show older comments
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 Comments
Answers (1)
Rik
on 22 Jul 2022
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 Comments
Rik
on 25 Jul 2022
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).
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!