Restore toolbar buttons to app after migration from GUIDE

4 次查看(过去 30 天)
After using the Guide-to-AppDesigner migration tool, my app no longer has the standard figure toolbar buttons in the app figure window. Moreover, since the figure has now become a uifigure, it seems impossible to give it a toolbar (correct me if I'm wrong).
The app does contain a uiaxes, and I'd be satisfied if I could have a standard toolbar local to this uiaxes. However, the uiaxes.Toolbar property is empty, perhaps as a side-effect of the migration tool. When I attempt to install the toolbar manually with this line,
handles.ImageAxes.Toolbar=axtoolbar(handles.ImageAxes,'default');
in the OpeningFcn created by the migration tool, the toolbar does indeed appear (see below), but is completely non-functional. None of the buttons do anything. This may be because axtoolbar creates the buttons but does not (correct me if I'm wrong) populate the buttons with their standard callbacks. Is there a simple way to install a fully functional default toolbar in a uiaxes or uifigure?
  1 个评论
Matt J
Matt J 2021-11-23
编辑:Matt J 2021-11-23
A possibly related problem is that when I open the attached mlapp in appdesigner's Design VIew and activite the "Toolbar Visible" checkbox for the UIAxes, it does not stay checked. If I save and reopen the app, the "Toolbar Visible" checkbox is unchecked again. Are there rules about toolbars in app components that I just don't understand ???

请先登录,再进行评论。

回答(1 个)

Matt J
Matt J 2021-12-4
Mathworks Tech Support claims this has been fixed in R2020b.

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by