LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make current Popup window/uir always stay in front of main GUI

Solved!
Go to solution

My application displays main GUI, then it displays second GUI, when I click on main GUI, the second GUI is hided behind the main GUI. How do I make the second GUI or confirm popup window always display in front of Main GUI?

Both of the GUIs are displayed in the center of screen, the second GUI size is smaller then main GUI. Thanks

0 Kudos
Message 1 of 7
(4,760 Views)

To have a panel stay in front of another you can choose between these methods:

  • Use InstallPopup instead of DisplayPanel. With this option the panel acts as a modal popup window (i.e. no user interaction is possible on the caller panel: you must close the panel with RemovePopup before you can operate again on the previous panel)
  • Set the panel as floating either in the UIR editor or programmatically with SetPanelAttribute: in this case you can operate simultaneously on both panels

 

As evident, the choice on the method to adopt depends on the behaviour you want for your application.



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?
Message 2 of 7
(4,756 Views)
Solution
Accepted by topic author thieny1
It worked with InstallPopup & RemovePopup functions. Thanks
0 Kudos
Message 3 of 7
(4,752 Views)

Necro thread, sorry, but same question using a "normal" popup panel like a ConfirmPopup.

1. Running a single panel app.

2. Have confirm popup come up for user to select.

3. User accidently clicks on panel instead of popup.

4. Popup disappears behind panel, computer-challenged user freaks out.

 

Would like this to not be the behavior, that is, can mouse click anywhere but keep the popup up front.

Suggestions? 

0 Kudos
Message 4 of 7
(3,657 Views)

This definitely is strange provided your panel is displayed with InstallPopup. Can you show your code? Or better create a simple running project that exhibits this behaviour?



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 5 of 7
(3,653 Views)

Good morning,

Sorry for my bad English.

 I have quite the same problem. I have the same program running on two benches. On the first one, no problem. On the second one, sometime popup are hidden without clicking and I must kill the program to do something.

any solution ?

Thank's

0 Kudos
Message 6 of 7
(3,215 Views)

Hi Xavier,

 

Have you tried the two methods mentioned earlier in this forum? 

 

1) Using the InstallPopup function to bring your popups to the front. (http://zone.ni.com/reference/en-XX/help/370051V-01/cvi/uiref/cviinstallpopup/)

 

2) Set the panel to be floating by using the SetPanelAttribute function (http://zone.ni.com/reference/en-XX/help/370051V-01/cvi/uiref/cvisetpanelattribute/) (http://zone.ni.com/reference/en-XX/help/370051V-01/cvi/uiref/cviattrfloating/)

 

Thanks

0 Kudos
Message 7 of 7
(3,201 Views)