フィルターのクリア

How to get UIFigure handle?

37 ビュー (過去 30 日間)
Micke Malmström
Micke Malmström 2016 年 5 月 18 日
コメント済み: Mark Eigenraam 2021 年 12 月 13 日
I want to check if a UIFigure exist already (then I dont have to open a new one). Ive tried searching with
findobj( 'HandleVisibility', 'off')
But with no luck. How can my script know if a certain .mlapp is already open or not?

採用された回答

Chris Portal
Chris Portal 2016 年 5 月 20 日
Right now, FINDOBJ can only be used to search for something within the App Designer app, so it requires the UIFIGURE handle to be passed in as the first argument:
findobj(h_uifigure, ...)
In order to search for a UIFigure itself, what you can use for now is FINDALL on the root object with whatever PV pairs you're interested in:
findall(0, 'HandleVisibility', 'off')
  1 件のコメント
Mark Eigenraam
Mark Eigenraam 2021 年 12 月 13 日
Hi, thanks for the above answer. Can someone expand to help out?
I have been suing finobj for years and have it everywhere in my code?
mfile.m contains the following which needs to be changed in App Designer.
findobj('tag','figHistViewer')
findobj('tag','fig_officer')
findobj('tag','fig_gnt')
findobj('tag','fig_asset')

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop uifigure-Based Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by