Within the Figures container (and the editor also), the list of open figures (or documents) could be positioned using the context menu, changing the bar position. Within an deployed application, I need to perform this task programatically.
How is it possible, starting from the figures container
com.mathworks.mde.desk.MLDesktop.getInstance.getGroupContainer('Figures')
or any other starting point, to either
  • extract the context menu und manually find the associated (position left) callback, or
  • directly get access to the positioning command via something like
Something.DTDocumentBar.setPosition(LEFT)
Thanks for any answer.

 채택된 답변

Alexander Mering
Alexander Mering 2014년 3월 21일

0 개 추천

Meanwhile I got help on this topic.
When being in contact with matlab support on another issue, the kind person there helped me. The solution is:
com.mathworks.mde.desk.MLDesktop.getInstance.setDocumentBarPosition('Figures',7)
Thanks matlab support.
Alexander

추가 답변 (1개)

Thierry Dalon
Thierry Dalon 2014년 3월 21일

0 개 추천

댓글 수: 1

Hello Thierry,
thanks for the reply. I completely forgot my question here.
The link you provided was actually a blog-post by myself. From there, the question comes.
Alexander

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by