Bobane
2008-07-31 17:30:21 UTC
Hi,
I would like to disable the context-menu which appears when
you right-click on a data cursor marker. I am writing an
application for third-party use, and I particularly do not
want the users of my application to be 'editing/selecting
the text update function'. (If it's there, someone will use
it!). Unfortunately, 'datacursormanager' class objects do
not have a 'hittest' property, so I can't use that.
It seems the data cursor object only has 4 properties:
Enable: {}
SnapToDataVertex: {}
DisplayStyle: {2x1 cell}
UpdateFcn: {}
None of these will do what I need.
Does anyone know how to either selectively disable some of
the context-menu items, or disable the whole context menu?
Many thanks in advance.
Bobane
I would like to disable the context-menu which appears when
you right-click on a data cursor marker. I am writing an
application for third-party use, and I particularly do not
want the users of my application to be 'editing/selecting
the text update function'. (If it's there, someone will use
it!). Unfortunately, 'datacursormanager' class objects do
not have a 'hittest' property, so I can't use that.
It seems the data cursor object only has 4 properties:
Enable: {}
SnapToDataVertex: {}
DisplayStyle: {2x1 cell}
UpdateFcn: {}
None of these will do what I need.
Does anyone know how to either selectively disable some of
the context-menu items, or disable the whole context menu?
Many thanks in advance.
Bobane