LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Modality using different threads

The main panel has a list box, where elements are added from a thread invoked on OK button.For a particular condition I need to pop up a panel from the thread.My execution of the thread should stop and wait for a return from the popped up panel and then continue.While i am not able to get any control of the popped up panel and also the process continues to perform not waiting for a return. How do i program this application ?

with gratitude
vivek
0 Kudos
Message 1 of 3
(3,132 Views)
You can call InstallPopup() to display the panel, GetUserEvent() to wait for the panel, and RemovePopup(0) to remove it.
InstallPopup doesn't cause your code to wait: it just installs and displays a modal dialog box. GetUserEvent with Wait Mode set to wait will wait until an EVENT_COMMIT is generated. GetUserEvent then returns the panel and control that generated the EVENT_COMMIT.
See answers to previous questions here
0 Kudos
Message 2 of 3
(3,132 Views)
Hello ,
Thank you very much for your help.
I have been able to solve my problem using
GetUserEvent()

regards
vivek $
0 Kudos
Message 3 of 3
(3,132 Views)