How do I manage stacking of the two apps (say Main app and a Secondary app) in Matlab app designer?

2 次查看(过去 30 天)
I have created two apps, A and B. A acts as the main app while B as the secondary one. B is called from within A and appears when A executes. Basically, I want app B to act as a dialog box and to appear at the begining when app A is ready. I expect this to be working properly if I could call app B through StartFcn in the app A. When I do this, app B certainly appears at the begining but soon sent at the back, which is annoying. Can anybody please help with that? Is it possible to keep appB at the front (onto appA)?

回答(1 个)

Dinesh Kavalakuntla
Hi Raju,
I understand that you are trying to stack two apps where the secondary app should always be at front. I see 'B' is the secondary app in your case.
You can set the WindowStyle property of secondary app's (App B in your case) UIFigure to 'modal'. This should ensure that App B stays on top of App A.

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by