Comments on: Matlab toolstrip – part 9 (popup figures) https://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-9-popup-figures Charting Matlab's unsupported hidden underbelly Sun, 03 Jul 2022 14:46:57 +0000 hourly 1 https://wordpress.org/?v=4.4.1 By: alain barraudhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-9-popup-figures#comment-501126 Wed, 02 Oct 2019 08:52:13 +0000 https://undocumentedmatlab.com/?p=8402#comment-501126 Hi yair,
I have tested your miniserie. All works fine with R2019b except some built in demos (as noted by many users) which require older releases.
You say that toolstrip can be also attached to figure and uifigure. What is the equivalent of
hToolGroup.addTabGroup(hTabGroup) for these windows container?

We are all impatient to read the future “part 10”.

Best regards
Alain

]]>
By: Gebhard Stopperhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-9-popup-figures#comment-476593 Tue, 30 Apr 2019 07:08:03 +0000 https://undocumentedmatlab.com/?p=8402#comment-476593 Hi,
I really love this mini series! (I’ve been looking for something like this for quite a while)

I have two questions about the toolstrip:
1) (How) Is it possible to embed e.g. a Tree control into the DataBrowser
2) How can I modify to small toolbar in the top right corner of the ToolStrip (e.g. exchange Icons/Buttons).

Best,
Gebhard

]]>
By: Arash Marashianhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-9-popup-figures#comment-475426 Wed, 17 Apr 2019 16:40:18 +0000 https://undocumentedmatlab.com/?p=8402#comment-475426 Hi,
Dear Yair, Thank you for your information.
I have a question in “showcaseMPCDesigner.m”, we have a function named “createDialog”, that makes a local popup.
I want to make sth like that, so it has 10 text-fields with a label and has a callback function.
At first, I can’t make more than 3 text-fields, and second of all, I can’t make a callback function.

I’ll be glad if you can help me.

]]>
By: Yair Altmanhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-9-popup-figures#comment-469435 Fri, 22 Mar 2019 09:29:16 +0000 https://undocumentedmatlab.com/?p=8402#comment-469435 @Karthik – you can pass hToolGroup as an extra parameter to your callback function when you set it up, using cell-array notation (details).

I plan to discuss tear-off dialogs in my next post in this Toolstrip mini-series, when I will discuss the Toolpack framework. The General idea is that hToolGroup.showFigureDialog() accepts a figure as input parameter and then displays it, while hToolGroup.showTearOffDialog() accepts a Toolpack panel as input (not hFig as you thought) and then displays it.

In Matlab releases R2018a or older that do not have the hToolGroup.showFigureDialog() function, you can create it yourself in a separate showFigureDialog.m file. I added a section in the main post that explains how.

]]>
By: karthikhttps://undocumentedmatlab.com/blog_old/matlab-toolstrip-part-9-popup-figures#comment-468472 Mon, 18 Mar 2019 15:17:09 +0000 https://undocumentedmatlab.com/?p=8402#comment-468472 yair, i am an ardent follower of your undocumented matlab work. i love your present posts on tool strips. Am trying to implement the last post on file chooser using push button call back. however, i receive the following error:
Undefined variable "hToolGroup" or class "hToolGroup.showFigureDialog".
Warning: Error occurred while evaluating listener callback.

hToolGroup is not recognized inside the callback as it is not passed i guess. can you help me out?

Also, I have matlab 2018a in which toolgroup.m doesnt have hToolGroup.showFigureDialog(hFig,hButton); instead it has hToolGroup.showTearOffDialog(hFig,hButton);

]]>