Borrar filtros
Borrar filtros

How can I create shortcuts to layouts

1 visualización (últimos 30 días)
Richard Fisher
Richard Fisher el 5 de Oct. de 2016
Comentada: Richard Fisher el 5 de Oct. de 2016
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?

Respuesta aceptada

Jan
Jan el 5 de Oct. de 2016
Did you read Yair's article about setting the layout programmtically?
  1 comentario
Richard Fisher
Richard Fisher el 5 de Oct. de 2016
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'

Iniciar sesión para comentar.

Más respuestas (1)

Thorsten
Thorsten el 5 de Oct. de 2016
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.

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by