Why is appdesigner toolbar not visible when visible is defined as 'on'?

22 views (last 30 days)
Dc215905 on 14 May 2021
Edited: Matt J on 21 Nov 2021 at 9:03
I am having trouble with Appdesigner toolbar.
First, is there a way to get it always be visible and not just when you hover over it with your mouse?
Second, despite when I define:
app.UIAxes.Toolbar.Visible = 'on'
the toolbar is not visible. I'm able to interact with it but it just disappears. Is there a fix?
Peter on 7 Jul 2021
Ah I see, glad it worked. I'll post my answer again below so it can be found more easily.

Sign in to comment.

Accepted Answer

Peter on 7 Jul 2021
A workaround that worked for me was to 'reset' the Toolbar Handle Visibility after creating a plot in the UIAxes component like:
app.UIAxes.Toolbar.HandleVisibility = 'off'
app.UIAxes.Toolbar.HandleVisibility = 'on'
  1 Comment
Matt J
Matt J on 21 Nov 2021 at 9:02
This didn't work for me, unfortunately (R2020a). Maybe because the axes contain an image instead of a plot...?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!