Comments on: Programmatic shortcuts manipulation – part 2 https://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-2 Charting Matlab's unsupported hidden underbelly Sun, 03 Jul 2022 14:46:57 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: Haraldhttps://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-2#comment-376237 Mon, 09 May 2016 15:12:30 +0000 https://undocumentedmatlab.com/?p=6169#comment-376237 really need this, thanks

]]>
By: Alexhttps://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-2#comment-374724 Wed, 20 Apr 2016 12:40:32 +0000 https://undocumentedmatlab.com/?p=6169#comment-374724 Hello Yair,

I’m wondering, if there is a possibility to put a new created shortcut to the quick access bar programmatically?
So we can use our shortcuts inside the Matlab-editor, where the quick access bar is also visible.

]]>
By: Alehttps://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-2#comment-368562 Thu, 28 Jan 2016 17:23:31 +0000 https://undocumentedmatlab.com/?p=6169#comment-368562 What about setting a keyboard shortcut for a custom shortcut?
I have some shortcut that I use really often, but I have to click on them all the time…

Ale

]]>
By: Molahttps://undocumentedmatlab.com/blog_old/programmatic-shortcuts-manipulation-part-2#comment-367216 Mon, 11 Jan 2016 18:08:38 +0000 https://undocumentedmatlab.com/?p=6169#comment-367216 Hi Yair,
Thank you for this post.
Using your customization I wanted to add a new section to a tab.
I tried different things but unfortunately the straightforward-way fails:

hMainFrame = com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame;
jToolstrip = hMainFrame.getToolstrip;
jHomeTab = jToolstrip.getModel.get('home').getComponent;
jMySection = com.mathworks.toolstrip.sections.FlowToolstripSection('MySection');
jHomeTab.add(jMySection);  % error
jHomeTab.repaint();
jHomeTab.revalidate();

Using TSPanel instead of FlowToolstripSection leads to a ToolstripSectionComponentWrapper casting error when accessing via jHomeTab.getSectionComponent.

Is there an easy way to add a new section to a tab?

]]>