A
Alex
Hello,
I have the following problem:
My C# add-in adds several buttons to Word's context menus.
I need to enable/disable the buttons based on the cursor location.
Unfortunately, enabling/disabling several buttons on each of the about 50-60 context menus that I modified (with the associated interop costs) from the WindowSelectionChange event handler - potentially on every cursor move, does not seem like the optimal solution.
Is there a way to determine which context menu is about to pop up and only process that menu?
If not, are there any other speedup suggestions?
Thank you,
Alex.
I have the following problem:
My C# add-in adds several buttons to Word's context menus.
I need to enable/disable the buttons based on the cursor location.
Unfortunately, enabling/disabling several buttons on each of the about 50-60 context menus that I modified (with the associated interop costs) from the WindowSelectionChange event handler - potentially on every cursor move, does not seem like the optimal solution.
Is there a way to determine which context menu is about to pop up and only process that menu?
If not, are there any other speedup suggestions?
Thank you,
Alex.