Create a toolstrip in App Designer?

Hi all,
I am trying to create a tool strip like those frequently used in the build in apps like Economic Modeler (and in the App Designer itself ) however I can't seem to recreate the same features.
For example : when I add a Container -> Tab Group, I can only set the app.UIFigure.Tab Background Color property but not the app.UIFigure.Tab Background Color property. How do I do this like in the MyAPP below to make it look like the Matlab ones (Econ Modeller), that is dark blue strip and light blue (unselected) tabs ?
Q2: Also, wouldn't it be a lot more helpful for Matlab to include the *.mlapp files for users can see how they are created?

댓글 수: 3

Mohammad Sami
Mohammad Sami 2020년 6월 12일
편집: Mohammad Sami 2020년 6월 12일
Matlab toolstrip is part of undocumented functionality. You can usee it, but then you cannot use app designer to build your app. In addition may not be able to compile and distribute your app. If you are interested you can read the Yair Altmans blog series on toolstrip.
DavyJonesLocker
DavyJonesLocker 2020년 6월 12일
thank you for your fast reply Mohammad, the solution works with 2018a but not 2020a unfortunately.
I think it would be useful for Matlab to state that that in theirt Examples documentation Example or demonstration APPs are included in UIdeisgner but then the user can recreate them which kindof defeats the purpose of having examples in the first place,
Yair Altman
Yair Altman 2024년 9월 7일
You can indeed create custom toolstrips in Matlab, as I have shown in the following series of articles: https://undocumentedmatlab.com/articles/tag/toolstrip
Note that this relies on functionality that is not officially supported by MathWorks, but works very well in practice for the past 10-15 Matlab releases. It is only the builtin set of examples that was removed as you discovered - the underlying functionality remains valid to this day and you can create custom toolstrip apps.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

질문:

2020년 6월 12일

댓글:

2024년 9월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by