pop-up menu gui
조회 수: 5 (최근 30일)
이전 댓글 표시
Hello.
Can you tell me how I can use pop-up menu for images? I have 4 options in the pop-up and 4 images for each option. Each option corresponds to diferetens filters. The 4 images are open in the program, I need to work with them to add 4 types of filters and to see the 4 images to each item on the pop-up.
Thank you.
댓글 수: 0
답변 (1개)
Walter Roberson
2012년 5월 30일
You cannot attach a pop-up menu uicontrol to an image. You can, however, create a context menu and assign it to the image's UIContextMenu property.
More common would be to use a uicontrol that was near the image. The Callback property of the uicontrol('Style','popup') would get() the Value property of the control and then would switch() on the value calling the appropriate routine
switch get(hObject, 'Value')
case 1: apply_filter_1();
case 2: apply_filter_2();
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!