필터 지우기
필터 지우기

How can I create shortcuts to layouts

조회 수: 1 (최근 30일)
Richard Fisher
Richard Fisher 2016년 10월 5일
댓글: Richard Fisher 2016년 10월 5일
I've created several custom layouts, which I want to access via shortcut, rather than selecting HOME > Layout > CustomLayout on the toolstrip.
Is there a way to change the layout using a shortcut/hotkey?

채택된 답변

Jan
Jan 2016년 10월 5일
Did you read Yair's article about setting the layout programmtically?
  댓글 수: 1
Richard Fisher
Richard Fisher 2016년 10월 5일
This works perfectly, thanks. For future reference, I've added the following to shortcuts in the toolbar for each layout:
com.mathworks.mde.desk.MLDesktop.getInstance.restoreLayout('LargePane')
I can then call this using a mnemonic (alt-1 for me).
This requires a Layout called 'LargePane'

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

추가 답변 (1개)

Thorsten
Thorsten 2016년 10월 5일
You can set Shortcuts under Matlab > Preferences > Keyboard > Shortcut, but only for some pre-defined actions; changing the layout is not amongst them, at least not for my Matlab version. So I fear the answer to your question is NO.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by