locked
How to disable desktop professional context menu item RRS feed

  • Question

  •  

    Hi,

     

    I know how to disable menu items and toolbar buttons (using OnGetDropDownMenu and OnGetToolbarItems),

    but I need to disable the "pivot" menu item of the graph context menu! How can I do this?

     

    Thomas

    Thursday, September 25, 2008 1:29 PM

Answers

  • Have you been able to catch the "OnRightClickPopUp" event from the chart?  From there you should be able to scroll through the elements in the menu and disable any you don't want to appear.

     

    Wednesday, October 8, 2008 12:08 AM
  • Yes, I figured out that I had to set a reference to the PControlEvents Library. Then I used the "OnRightClickPopup" event of the PControlEvents.KEChart object (and the PControlEvents.KEGrid).

     

    Thanks anyway!

     

    Thomas

    Friday, October 10, 2008 3:31 PM

All replies

  • Have you been able to catch the "OnRightClickPopUp" event from the chart?  From there you should be able to scroll through the elements in the menu and disable any you don't want to appear.

     

    Wednesday, October 8, 2008 12:08 AM
  • Yes, I figured out that I had to set a reference to the PControlEvents Library. Then I used the "OnRightClickPopup" event of the PControlEvents.KEChart object (and the PControlEvents.KEGrid).

     

    Thanks anyway!

     

    Thomas

    Friday, October 10, 2008 3:31 PM