T
Tony Gratton
Hi,
I am developing a Visio application in C#2005 using the VDC. I want to
disable Visio's UI so that I can present my own. My main focus is to disable
the context menu displayed when right clicking on the drawing surface in the
VDC.
I have successfully managed to do so by indentifying the 'Drawing Object
Selected' shortcut menu set (visUIObjSetCntx_DrawObjSel), then cycling
through the menu items and setting the visible and enabled properties to
'false'.
My problem is with the hyperlinks in the shortcut menu which refuse to
disappear. Whatever I do, they appear when right clicking. Logic tells me
that they are being recreated dynamically when the shape select is made in
the VDC.
Can anyone please suggest a strategy for disabling these dynamic hyperlink
shortcut entries?
By the way, I have already tried cyclng through every menu with my disabling
strategy, but to no effect and have already tried various combinations using
the Delete method with the different menu objects and this proved to be less
effective than my current strategy. I am working in both 2003 and 2007
versions.
Thanks in advance for your help.
Tony
I am developing a Visio application in C#2005 using the VDC. I want to
disable Visio's UI so that I can present my own. My main focus is to disable
the context menu displayed when right clicking on the drawing surface in the
VDC.
I have successfully managed to do so by indentifying the 'Drawing Object
Selected' shortcut menu set (visUIObjSetCntx_DrawObjSel), then cycling
through the menu items and setting the visible and enabled properties to
'false'.
My problem is with the hyperlinks in the shortcut menu which refuse to
disappear. Whatever I do, they appear when right clicking. Logic tells me
that they are being recreated dynamically when the shape select is made in
the VDC.
Can anyone please suggest a strategy for disabling these dynamic hyperlink
shortcut entries?
By the way, I have already tried cyclng through every menu with my disabling
strategy, but to no effect and have already tried various combinations using
the Delete method with the different menu objects and this proved to be less
effective than my current strategy. I am working in both 2003 and 2007
versions.
Thanks in advance for your help.
Tony