Is it possible to create a MULTIPLE INTERFACE DOCUMENT in MATLAB
조회 수: 5 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
Jan
2011년 3월 17일
편집: Jan
2017년 11월 15일
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.
추가 답변 (1개)
Volker
2011년 10월 18일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Software Development Tools에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!