Programatically change DTDocumentBar position

1 回表示 (過去 30 日間)
Alexander Mering
Alexander Mering 2013 年 1 月 15 日
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 日
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 件のコメント
Ajay krishna Vasanthakumar
Ajay krishna Vasanthakumar 2020 年 10 月 30 日
Thanks alot it helped. :)

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

その他の回答 (1 件)

Thierry Dalon
Thierry Dalon 2014 年 3 月 21 日
  1 件のコメント
Alexander Mering
Alexander Mering 2014 年 3 月 21 日
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

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

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by