Popup menu and do nothing

조회 수: 4 (최근 30일)
john
john 2013년 8월 15일
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

답변 (1개)

Walter Roberson
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.
  댓글 수: 1
john
john 2013년 8월 20일
OK, thank you

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by