Comments on: Matlab toolstrip – part 6 (complex controls) https://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-6-complex-controls Charting Matlab's unsupported hidden underbelly Wed, 20 May 2020 03:01:17 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-6-complex-controls#comment-462041 Thu, 14 Feb 2019 22:54:36 +0000 https://undocumentedmatlab.com/?p=8235#comment-462041 @Batuhan – I don’t know what exactly happened in your specific case, but it could be that you are not storing the ToolGroup handle in a persistent location, as I explained in an earlier post at the beginning of this miniseries:

“An annoying quirk with ToolGroups is that they automatically close when their reference handle is deleted from Matlab memory. The specific behavior changes depending on the contents of the container and the Matlab release, but in general it’s safest to preserve the hToolGroup variable, to prevent the window from closing, when this variable goes out of scope, when the function (in which we create the ToolGroup) returns. …”

]]>
By: Batuhanhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-6-complex-controls#comment-458879 Tue, 29 Jan 2019 13:16:15 +0000 https://undocumentedmatlab.com/?p=8235#comment-458879 Hello @Yair,

I was able to compile my ToolGroup app however the standalone executable would only open for a second display itself and then shutdown immediately. I believe this is because Compiler is prevented to do things correctly when it comes to ToolGroup apps. Or could I have done something wrong?

Thank you.

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-6-complex-controls#comment-457858 Thu, 24 Jan 2019 12:57:36 +0000 https://undocumentedmatlab.com/?p=8235#comment-457858 @Yaroslav – thanks.

It would indeed make a lot of sense for the toolstrip functionality to be added to App Designer, but I don’t know whether this is what MW plans or what the timeline for this might be. For example, MW might one day release a separate independent tool to create apps (with toolstrip, Data Browser, docking etc.), that would not be a direct part of App Designer. In fact, MW might even decide to monetize such a tool as a new commercial toolbox. I hope MW won’t do this, but it would certainly be just as viable an option as adding the functionality to App Designer. Unfortunately, I see a hint for this direction in the fact that the Matlab Compiler Toolbox is currently prevented from compiling and deploying user-created apps (only figures and uifigures). Maybe it’s related and maybe not – I hope not, but I fear that it may indeed be. In such a case, I hope that MW would at least leave the programmatic route as part of the core Matlab.

In any case, I believe it is unlikely that the toolstrip functionality will ever be added to GUIDE, because I believe MW plans to discontinue GUIDE as soon as it can get the new uifigures and App Designer to a reasonable state. This is the reason that MW never added uitree to GUIDE, only to App Designer. And this is entirely understandable, after all most R&D resources should be devoted to future tools, not outdated ones (and GUIDE is at least a decade, if not two, out-of-date). Therefore, for legacy (Java-based) figures and apps, the only option for adding a toolstrip would be programmatically.

]]>
By: Yaroslavhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-6-complex-controls#comment-457856 Thu, 24 Jan 2019 12:21:50 +0000 https://undocumentedmatlab.com/?p=8235#comment-457856 Hi @Yair,

First of all — kudos on the amazing work. I think that the miniseries format has a substantial added-value, as one can connect the different pieces to a complete picture.

Regarding this series: do you think Mathworks(c) will incorporate the toolstrip widgets into appdesigner? I mean, for the lazy—but advanced—user, it seems only natural to have these widgets without all the nuisance of placing them programmatically.

— Yaroslav

]]>