GUI pop up menu
조회 수: 1 (최근 30일)
이전 댓글 표시
Gui pop up menu that i created is not having memory of the past selection...
eg: say popup has 2 options in the order: red blue
if the user has selected blue first time, then second time, since by default, popup shows red....user (who wants to now select red), leaves it untouched...but gui actually works with the memory of blue's selection...
I have tried some techniques to solve this but nothing seems to work.. Any suggestions....?
댓글 수: 0
채택된 답변
Image Analyst
2013년 4월 12일
The popup will not automagically change from blue to red - you must have told it to in code, or the user changed it to red. It will not change by itself from blue (which the user just selected) to red.
If the GUI uses "blue" but the popup actually displays "red" then you're not getting the value of the popup when you need to use it. Get it like this
selectedItem = get(handles.popup1, 'Value');
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
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!