LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

InstallPopup weirdness

I have written a configuration utility for one of our products where I use SetInputMode() to disable the main panel while programming the UUT. This grays out the panel as expected and prevents any user input until the operation is done. So far so good.
 
If a certain configuration setting is chosen by the user, the program uses InstallPopup() display another panel for the user to specify additional settings. This is done while the main panel is still disabled. When the new panel appears, the old panel is no longer grayed out (which is what I want). The panels still behave as expected other than that. The new popup is still modal and the main panel will not accept any input. Is this expected behavior or am I missing something?
Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 1 of 4
(3,456 Views)
I think this is normal behaviour. In my experience, when a popup is active, the panel from which the popup was loaded can not be operated.
0 Kudos
Message 2 of 4
(3,420 Views)
That is correct and what I expect, however that is not the issue. What I do not expect is that when I have already disabled the main panel using SetInputMode and it is greyed out, that it would be changed back to the normal rendering while the popup is active. There is no reason that I can see that the call to InstallPopup should change the rendering of the main panel at all.
Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 3 of 4
(3,408 Views)
Sometimes I am my own worst enemy.
 
For some reason, I forgot that InstallPopup() just displays the panel as a popup and returns to the calling function immediately. Because of this, it was falling through to the call to SetInputMode() and the main panel was being reset because of it. After adding a wait loop to the program, it displays and acts in the manner I was expecting it to act.
 
So basically, call this a false alarm.
Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 4 of 4
(3,399 Views)