adding toolbar and menubar to figure in appdesigner
Show older comments
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.
Accepted Answer
More Answers (1)
Ajay Pattassery
on 24 Apr 2020
1 vote
Toolbar can be added programatically to app designer using uitoolbar function from MATLAB R2020a ownwards.
1 Comment
Sreerup Banerjee
on 29 Jul 2020
If I use a local function in the App Designer as callback for the pushbuttons or togglebuttons inside the toobar, it is giving error:
Undefined function 'myfcn' for input arguments of type 'matlab.ui.container.toolbar.PushTool'.
Error using matlab.ui.internal.controller.WebPushToolController/fireActionEvent (line 116)
Error while evaluating PushTool ClickedCallback.
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!