Is it possible to create a MULTIPLE INTERFACE DOCUMENT in MATLAB

I am working on a project which requires a single Parent Form Window and many Child window. I want to know if it possible to create such a Multiple Document Interface in MATLAB
Thanks in Advenace

 採用された回答

Jan
Jan 2011 年 3 月 17 日
編集済み: Jan 2017 年 11 月 15 日

1 投票

Do you mean UISplitPane?
Or something like this:
desktop = com.mathworks.mde.desk.MLDesktop.getInstance;
myGroup = desktop.addGroup('myGroup');
desktop.setGroupDocked('myGroup', 0);
myDim = java.awt.Dimension(5, 2);
desktop.setDocumentArrangement('myGroup', 2, myDim)
S = warning('off', 'MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame');
figH = zeros(1, 10);
for iFig = 1:10
figH(iFig) = figure('WindowStyle', 'docked', ...
'Name', sprintf('Figure %d', iFig), ...
'NumberTitle', 'off');
set(get(handle(figH(iFig)), 'javaframe'), ...
'GroupName', 'myGroup');
pause(0.02); % Magic, allow processing java events
end
warning(S);
Note: Works in 2016b also.

2 件のコメント

Venkat Alagarsamy
Venkat Alagarsamy 2011 年 3 月 17 日
Yeah. Thank you!!!!
Venkat Alagarsamy
Venkat Alagarsamy 2011 年 3 月 17 日
The code is what i was looking for.

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

その他の回答 (1 件)

Volker
Volker 2011 年 10 月 18 日

0 投票

Is there a way in your above example to add a panel on the left side of the desktop in a fixed position and have the figures floating in the rest of the space? I am trying to simulate a Multiple Document Interface and an Tree inside a larger window. Thanks.

カテゴリ

ヘルプ センター および File ExchangeSoftware Development Tools についてさらに検索

タグ

質問済み:

2011 年 3 月 17 日

編集済み:

Jan
2017 年 11 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by