LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

install popup on popup, removing most recent causes both to go away

Solved!
Go to solution

I have a popup panel (I created manually in my .uir).  From that panel, I call a new popup panel (manually created in code).  When I click ok on my second popup, its callback function calls RemovePopup(2nd panel handle), both popups seem to go away instead of just the 2nd one and returning to the first.

 

Is this expected?  i know there is a way (at least in my program) to work around this, but wanted to check with the experienced people first 🙂

 

0 Kudos
Message 1 of 4
(3,783 Views)
Solution
Accepted by topic author ngay528

As clearly stated in the function help, the parameter passed to the function detrermines which popup is removed:

 

Selects whether to remove all pop-up panels or only the active pop-up panel.

1 = All
0 = Active only

 

You should not pass the panel handle to this function: it is possible that every non-zero value is interpreted as a "clear all" command. Normally you call RemovePopup (0) to remove the last installed popup only.



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 2 of 4
(3,774 Views)

hi,

   also you can call HidePanel(panelHandle), this is specialy useful when you need hide panel from Timer automaticaly.

0 Kudos
Message 3 of 4
(3,758 Views)

DOH!!!!!!!!  Tunnel Vision on my part.  Assumed it was a panel Handle similar to all other panel calls.

0 Kudos
Message 4 of 4
(3,735 Views)