02-05-2020 05:32 AM - edited 02-05-2020 05:39 AM
Hello All,
I have a VI (VI_A) that is called by my Main VI and is displayed in a Sub panel.
VI_A has events that are driven by the Panel -> Mouse Down event which work fine when VI_A is run 'stand alone'.
However, when VI_A is displayed in the Sub Panel of the Main VI the Mouse Down event never actions.
I am guessing this is due to the mouse down event being recognized as happening on the Main_VI not the VI_A.
Is there any way to get the Mouse_Down to action in VI_A when it is displayed in the Sub Panel?
I hope what I've written makes sense.....
Thanks,
Iain
Solved! Go to Solution.
02-05-2020 06:14 AM
02-05-2020 06:27 AM
02-05-2020 06:58 AM
I guess you register dynamically for those events? Check the error out of the dynamic event registration. It will fail for FP events if the FP is not open...
So, make sure the FP is in the subpanel. Or hide the panel, register and than put the FP in the subpanel.
02-05-2020 07:15 AM
Hello,
Thanks for your replies!
After some further investigation it finally dawned on me that although I was opening and displaying my VI_A in the Sub Panel; VI_A was not running!
So I wired in an Invoke node and used the Run VI method and hey presto it now works!.........That made me feel pretty dumb!
Thanks again for taking time to reply!
Iain