Listening to uimenu ChildAdded event causes screen print

2 次查看(过去 30 天)
Does anybody know why the following code:
m = uimenu(figure,'Text','ParentMenu');
lsn = addlistener(m,'ChildAdded',@(~,~) []);
m2 = uimenu(m,'Text','ChildMenu');
produces the following undesired screen print?
ui::eventdata::ChildData::ChildData()
More importantly, since it doesn't appear to be an actual warning, is there any way to turn it off? The uimenu code is built-in, so I can't peek at the classdef file to see if it is a rogue disp call in the event definition.
Bonus points, but not the primary question: does anybody know how to trigger the 'NodeChildAdded' event?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by