취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

How to dynamically enable or disable a control's runtime shortcut menu?

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.

--
Ajay MV


0 포인트
1/6 메시지
4,039 조회수

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 포인트
2/6 메시지
4,031 조회수

Register for the control's "Shortcut Menu Activation?" filter Event and selectively discard it.

0 포인트
3/6 메시지
4,020 조회수

 


@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.

--
Ajay MV


0 포인트
4/6 메시지
3,935 조회수

@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.

--
Ajay MV


0 포인트
5/6 메시지
3,932 조회수

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!

 

0 포인트
6/6 메시지
3,926 조회수