フィルターのクリア

In App Designer, how can I refer to the controls in one GUI from another GUI?

2 ビュー (過去 30 日間)
Ahmed
Ahmed 2019 年 8 月 30 日
回答済み: Ahmed 2019 年 9 月 4 日
Basically, in App Designer, I have 2 GUIs opened at the same time: GUI1_App and GUI2_App. GUI1_App includes a "Static Text" while GUI2_App includes a "Push Button". I would like the Color property of the Static Text in GUI1_App to change when I push the Push Button on GUI2_App.
Essentially, my question is how can I refer to the controls in GUI1_App from GUI2_App? how can I refer to the controls in GUI1_App from GUI2_App?
  5 件のコメント
Ahmed
Ahmed 2019 年 9 月 3 日
Well, just to clarify:
1) GUI2_App is launched from GUI1_App.
2) I need to control GUI1_App handles from GUI2_App code.
Where should I add this app1=GUI1_App command?
If I added this in GUI2_App, it reopens GUI1_App
Adam
Adam 2019 年 9 月 3 日
You will need to pass GUI1_App into GUI2_App when you launch it. GUI1_App should be called app in the function where you launch GUI2_App. Passing arguments to an app as described in

サインインしてコメントする。

採用された回答

Ahmed
Ahmed 2019 年 9 月 4 日
After doing some research, the solution to this question can be found in this Matlab example:

その他の回答 (1 件)

Sai Sri Pathuri
Sai Sri Pathuri 2019 年 9 月 3 日
  1 件のコメント
Ahmed
Ahmed 2019 年 9 月 3 日
編集済み: Ahmed 2019 年 9 月 3 日
Thank you. I'm aware of this answer. However, it works in GUIDE and doesn't work in App Designer

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by