MATLAB Answers

adding toolbar and menubar to figure in appdesigner

222 views (last 30 days)
Hello house< I am trying to add toolbar to a figure in matlab with appdesigner, I have coded most of the examples shown on the appdesigner editor, its not just working. please I need assistance on this:
I have tried this method:
app.p = app.uifigure;
app.m = app.uimenu(app.p);
app.m.Text = 'Open Selection';
its not working
I have also tired this
app.t = app.UIFigure;
addToolbarExplorationButtons(app.t)
None is working.

  0 Comments

Sign in to comment.

Accepted Answer

Abhilash Padma
Abhilash Padma on 29 Jul 2019
Hi,
For now, app designer does not support toolbar. However, you can explore tab groups if it suits your use case. You can add menu bar and tab group to your app using app designer by dragging Menu Bar and Tab Group from Component Library and dropping it on the app in design view of the app. Refer the following links to get more information about menu bar and tab group:

  0 Comments

Sign in to comment.

More Answers (1)

Ajay Pattassery
Ajay Pattassery on 24 Apr 2020
Toolbar can be added programatically to app designer using uitoolbar function from MATLAB R2020a ownwards.
Refer here for more information.

  0 Comments

Sign in to comment.


Translated by