03-24-2014 03:41 AM
Is there a way to do it?
I need to disable a control's runtime menu while my VI is running and then enable it at other point of time. All the way, I can make use of the default menu items (Reinitialize to default values, Copy data etc..,) for the control and I don't have any customized menu items.
03-24-2014 04:07 AM
03-24-2014 04:50 AM
Register for the control's "Shortcut Menu Activation?" filter Event and selectively discard it.
05-02-2014 04:22 AM
@drjdpowell wrote:
Register for the control's "Shortcut Menu Activation?" filter Event and selectively discard it.
Thanks for the reply. That will give a bad impression for the end user. He/she may think like my application doesn't reponse to the available options. I specifically want to greyout selective options.
05-02-2014 04:24 AM
@GerdW wrote:
Hi Ajay,
as a quick & dirty way you could use a filter event for mouse clicks. When you want to disable the right-click menu you filter the right-click mouse events…
Thats nice dirty idea. But it might give my end-user an impression that my application doesn't respond to the given options. I specifically want to greyout the right-click menu.
Thanks,
Ajay.
05-02-2014 05:08 AM - edited 05-02-2014 05:10 AM
You can dynamically load different run time short cut menus. ( I use if for language changes)
Maybe you could have your normal menu, and then load an empty menu when you want to get rid of the menu.
Edit: oops, didnt read the question!