figure menu when resizing
1 次查看(过去 30 天)
显示 更早的评论
When I resize a figure and make it smaller the menu is compressed and is not readable. This behavior is different in an older Matlab version (2006) when the menu is displayed on 2 rows when the figure size is too small. How can I get the old behavior in the new(er) Matlab?
Thanks!
0 个评论
采纳的回答
Yair Altman
2011-11-20
jFrame = get(handle(gcf), 'JavaFrame')
try
jMenuBar = jFrame.fHG1Client.getMenuBar;
catch
jMenuBar = jFrame.fFigureClient.getMenuBar; % R2007b and earlier
end
jMenuBar.setMoreMenuEnabled(true);
Yair Altman
0 个评论
更多回答(3 个)
DC
2011-11-21
Thanks for your reply! Although a reasonable solution to my problem, this is only a workaround, in the sense that it does not put the menu bar on 2 lines, but adds an extension to the menu bar which only becomes visible when clicking the arrow. Is there no way to create a menu bar on more lines?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!