LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

InstallPopup overwrite window topmost status

My CVI dll popup a main panel as topmost window.  That works fine.  Problem start when I need popup another dialog window on top of the main CVI window.  I used InstallPopup.  The popup window got a correct relation with the main window, but both CVI windows lost topmost status.  So they can be covered by the dll caller (LabVIEW).  When I close the popup window, the main panel get its topmost status back mysteriously.

When I call Set attributes for setting topmost programmatically, I got an runtime error, saying that I can't do that while the popup is running.

I did manage to get topmost back by Window API calls.  Don't know if this the right way. 

Anyone run into this before ?

 

 

George Zou
0 Kudos
Message 1 of 4
(3,262 Views)

How are you removing the popup?

 

This post may be helpful.

NI FORUM LINK

0 Kudos
Message 2 of 4
(3,250 Views)

Thanks for reply ngay528.

 

My main panel is NOT a modal (popup).  I don't know how to make it a modal.  InstallPopup doesn't work in this case.  The caller is LabVIEW.

So I don't use RemovePopup.

 

George Zou
0 Kudos
Message 3 of 4
(3,218 Views)
0 Kudos
Message 4 of 4
(3,202 Views)