11-18-2010 10:08 AM
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 ?
11-18-2010 04:08 PM
11-19-2010 11:15 AM
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.
11-19-2010 01:54 PM
See the related question and response here:
http://forums.ni.com/t5/LabWindows-CVI/Make-panel-modal-from-a-CVI-dll/m-p/1316925#M50035