LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmably disable a panel callback?

I don't want the panel callback to be called when I am calling ProcessSystemEvents (). Is there any way to do that?
Alternatively, is there any way to make CVI only response some specifc events such as clicking some specific buttons?
Thanks. 
0 Kudos
Message 1 of 2
(2,841 Views)

To disable a panel callback, you can use InstallPanelCallback (panel, 0, 0); The same could be done in control callbacks with InstallCtrlCallback (panel, control, 0, 0);Alla panel and control callbacks must be reisntalled when you need them again.

Alternatively (maybe it's simpler), you could manage a global variable that is raised when entering your special section of code and in panel and control callbacks return immediately if that variable is on.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,829 Views)