How to use context menu for app designer
조회 수: 35 (최근 30일)
표시 이전 댓글
Hi,
I'm fiding it really difficult figuring out how the conetext menu works in app designer.
I have 4 listboxes that i have linked to a context menu.
I when i use the conext menu that has a "delete" item that I've created. I want the callback to know which listbox has icicated the contextmenu callback.
Tried to read the documentation but didn't seem to be able to get it working
댓글 수: 0
답변 (1개)
Yongjian Feng
2021년 11월 25일
Each listbox has its own contextmenu, right? You should be able to tell which listbox is calling, right?
Attach a screenshot if this is not the case.
댓글 수: 5
Lee
2022년 8월 2일
편집: Lee
님. 2022년 8월 3일
I agree with you, Paul. This is idiotic, and a massive limitation of AppDesigner compared to GUIDE. Similarly, the ONLY callback available for Listboxes is ValueChanged, making it impossible to change any properties of the app after clicking inside a listbox for example (which would solve your problem). Instead we are forced to duplicate context menus, callbacks, and buttons because now they have to be dedicated to each and every listbox - thanks Mathworks!
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!