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 ExchangeApp 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