Comments on: Matlab toolstrip – part 2 (ToolGroup App) https://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app Charting Matlab's unsupported hidden underbelly Thu, 07 Sep 2023 16:43:44 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: Rohithttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-496735 Tue, 10 Sep 2019 14:41:43 +0000 https://undocumentedmatlab.com/?p=8059#comment-496735 Is there any way to display “Figure’s default Toolbar” when docked to “ToolGroup”? as it does when you use Matlab’s default docking option.

]]>
By: Thomas Satterlyhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-476125 Wed, 24 Apr 2019 17:49:14 +0000 https://undocumentedmatlab.com/?p=8059#comment-476125 Thanks for writing this series, I’ve found using the ToolGroup very enjoyable in new lightweight apps. One issue/annoyance I’ve noticed is that conditional tab groups (using the addClientTabGroup() method) will remove and re-add themselves every time a new figure is selected that uses the tab group. This creates a “flashing” effect as the view is rendered during the removal and addition process. For reference, I’m using Matlab R2016b. Is this a unique issue, or are other people seeing the same effects?

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-471983 Mon, 01 Apr 2019 14:15:28 +0000 https://undocumentedmatlab.com/?p=8059#comment-471983 @Arash – I plan to discuss client layups in a future post of this mini-series. In the meantime you can play with this:

jDesktop = com.mathworks.mlservices.MatlabDesktopServices.getDesktop;
dockType = jDesktop.TILED;  % NONE=0, MAXIMIZED=1, TILED=2, FLOATING=3
panelSize = java.awt.Dimension(2,1);  % 2 columns, 1 row  (leave =[] for non-TILED)
jDesktop.setDocumentArrangement(hToolGroup.Name, dockType, panelSize);
]]>
By: Arash Marashianhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-471435 Sat, 30 Mar 2019 15:46:34 +0000 https://undocumentedmatlab.com/?p=8059#comment-471435 Hi, thanks for your good information,
I have a question here:
how can we set a specific initial view model?
For example, I want to plot step resp. and impulse resp. together in one window (as we have “left/right” in the view tab).

]]>
By: Henryhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-456333 Sat, 22 Dec 2018 08:39:22 +0000 https://undocumentedmatlab.com/?p=8059#comment-456333 Hi Yair

Thanks for your answer. Maybe MATHWORKS want to prevent their own APPs in the matlab. If they can be deployed, all the Apps can be used without license. But it is very pity, otherwise, matlab can build very wonderful apps to users.

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-456263 Fri, 21 Dec 2018 00:13:51 +0000 https://undocumentedmatlab.com/?p=8059#comment-456263 @Henry – for some unknown reason, MathWorks have chosen to intentionally prevent figure docking in compiled applications. There used to be a workaround for this, but it is no longer working (in other words, MathWorks have closed the loophole) in recent Matlab releases.

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-456190 Wed, 19 Dec 2018 19:08:44 +0000 https://undocumentedmatlab.com/?p=8059#comment-456190 @Tanguy – thanks for the typo correction, now fixed.

]]>
By: Tanguyhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-456188 Wed, 19 Dec 2018 18:26:37 +0000 https://undocumentedmatlab.com/?p=8059#comment-456188 Hello Yair,

minor correction (on the part you recently corrected, sorry):

% hTabGroup2 = matlab.ui.internal.desktop.TabGroup();
% should be :
hTabGroup2 = matlab.ui.internal.toolstrip.TabGroup();

Other than that great article. Just a note, for MATLAB R2016a, the “addClientTabGroup” method to add a specific tab linked with a figure has to be called after the figure is attached, so for this version the code becomes:

% Add the figure and tabs to the ToolGroup
hToolGroup.addFigure(hFig2);
hToolGroup.addClientTabGroup(hFig2, hTabGroup2);

Everything works fine after that.

]]>
By: Henryhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-456143 Wed, 19 Dec 2018 06:20:53 +0000 https://undocumentedmatlab.com/?p=8059#comment-456143 Hi, Yair

Thanks for your introduction of this toolstrip. if this toolstrip can be deploy as a standalone application, it will be amazing.
it is success to deploy the ToolGroupApp.exe (save all your commands as ToolGroupApp.m and ‘mcc -m ToolGroupApp’), but when running it, the two figures will jump out as two windows, not dock as two cilents in the toolgroup.
is it possible to solve this problem, so that the wonderful toolstrip can demploy as a exe with beatuiful user interface?

looking forward to your reply

best
Henry

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-456035 Mon, 17 Dec 2018 15:06:47 +0000 https://undocumentedmatlab.com/?p=8059#comment-456035 @Alex – thanks, fixed

]]>
By: Alexhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-2-toolgroup-app#comment-456033 Mon, 17 Dec 2018 14:48:09 +0000 https://undocumentedmatlab.com/?p=8059#comment-456033 Hi Yair,

“hTabGroup2 = TabGroup();” in section “Adding clients (docked figures) to the ToolGroup” should be
“hTabGroup2 = matlab.ui.internal.toolstrip.TabGroup();”

Greetings Alex

]]>