Custom context menu for data cursor (MATLAB GUI)

1 view (last 30 days)
Aravind
Aravind on 21 Jul 2014
Commented: derboo on 23 May 2016
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 Comment
derboo
derboo on 23 May 2016
Have you already an answer how to customize the datacursor context menu? I'm try to customize it, too - but no success.

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!