How to put uitable in new figure using GUIDE?

9 ビュー (過去 30 日間)
BananaBandana
BananaBandana 2019 年 9 月 12 日
コメント済み: BananaBandana 2019 年 9 月 13 日
Hello,
I am currently doing some stuff using GUIDE. On the main window I have created an uitable. The data of the table is used by some functions. But now I need the space on the main window and actually dont want to see the Table all the time. Is it possible, that the implemented functions still use and change the uitable data, without the table shown on the mainwindow and when I click a button, I will get the actual version of the uitable in a new figure-window?
I tried somethin like this, when I click on a button:
fig = figure;
uit = handles.uitable1;
uit(fig);
Thanks a lot!

採用された回答

Adam Danz
Adam Danz 2019 年 9 月 12 日
編集済み: Adam Danz 2019 年 9 月 12 日
You can keep the UI table on the main GUI window and toggle its visibility using the "Visible" property. When the UI table is not visible, it's properties (and therefore it's data) are still accessible from within the GUI.
handles.uitable1.Visible = 'off'; % or 'on'
To copy the UI table to a new figure,
newFig = figure();
copyobj(handles.uitable1, newFig);
  3 件のコメント
Adam Danz
Adam Danz 2019 年 9 月 12 日
answer updated
BananaBandana
BananaBandana 2019 年 9 月 13 日
Perfect! Thanks for your time!

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

その他の回答 (0 件)

カテゴリ

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