Why am I unable to create a uimenu with the title "remove"?
2 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2009-6-27
编辑: MathWorks Support Team
2021-11-4
To reproduce this issue, type the following at the MATLAB command prompt:
f =uimenu(figure(1),'Label','remove')
Note that no menu item "remove" appears in the menubar of the figure. Now enter the following:
f =uimenu(figure(1),'Label','Remove')
Note that a menubar item "Remove" appears as expected.
采纳的回答
MathWorks Support Team
2021-11-3
编辑:MathWorks Support Team
2021-11-4
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
The strings 'remove', 'default', and 'factory' are special strings in Handle Graphics. The purpose of these strings is discussed in Section 6 of the Handle Graphics and Properties Guide:
If a string of a uicontrol or label of a uimenu needs to be set to one of these special strings, prepend a backslash (\) to the string as shown in the example below
f =uimenu(figure(1),'Label','\remove')
0 个评论
更多回答(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!