LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI suspending user operation

I open a panel that performs a calculation and then displays the results on a graph. The calculation may take a little while. How can I suspend mouse clicks or User operation until the calculation is finished. It seems that if you click on another menu option while the calculation is in progress CVI can get into a non responding mode and I have to use the task manager to get out of it.
0 Kudos
Message 1 of 2
(2,869 Views)
Try using the WaitCursor:

// activate the wait cursor
SetWaitCursor (1);
// do your calculation and display results
// deactivate the wait cursor
SetWaitCursor (0);

Note that with the wait cursor active, mouse clicks are stored for processing after wait cursor is set inactive. If you want to disable all clicks, use InstallPopup() to display your graph panel with a disabled (dimmed) OK button. When your calculation is done, enable (undim) the OK button and RemovePopup(0) when user clicks on OK.
0 Kudos
Message 2 of 2
(2,869 Views)