Custom context menu for data cursor (MATLAB GUI)

I have a specific context menu in the GUI file.
Once datacursormode is on, I would like to retain that context menu.
Google gave the following code to 'remove' the context menu in the datacursor mode (working)
h = datacursormode(gcf);
set(get(get(h,'UIContextMenu'),'Children'),'Visible','off')
How do I add a Context menu which was pre-defined in the GUI ?

댓글 수: 1

derboo
derboo 2016년 5월 23일
Have you already an answer how to customize the datacursor context menu? I'm try to customize it, too - but no success.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 App Building에 대해 자세히 알아보기

질문:

2014년 7월 21일

댓글:

2016년 5월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by