Popup menu and do nothing
1 次查看(过去 30 天)
显示 更早的评论
Hi,
how can I do this?
When I click on popup menu and I don't change a content, than print "You didnt change it". When I change the content, than print "You changed it".
thank you
0 个评论
回答(1 个)
Walter Roberson
2013-8-15
save the Value property of the menu. In the callback, compare the new Value property to the saved property.
Now if you need to be able to detect that the use moved onto the popup menu but did not click on anything or pressed escape to avoid selecting anything, then that task is more complicated.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!