LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i create pop-up panels like "prompt pop-up panel" in LabWindows/CVI??

i heard that it can be found in library. But i cannot find it??
0 Kudos
Message 1 of 4
(3,941 Views)
You can use InstallPopup () from the UIL.
Regards,
Heinrich Illig
National Instruments
0 Kudos
Message 2 of 4
(3,941 Views)
If you want to use a pop-up that's delivered with CVI, from any CVI window, goto Library >> User Interface, make sure Flatten is not checked, then goto Pop-up Panels >> Message/Prompt Popups. You'll see ConfirmPopup, GenericMessagePopup, MessagePopup, and PromptPopup. Open the function panels of these and view the function help to see the differences.
If you want to create you own popup panel, create it like any panel using the UI editor. LoadPanel() on that panel at the start of your program, then, when you want to display it, call InstallPopup() to display and activate it as a modal dialog box. Use RemovePopup(0); to remove the last installed popup when you're done with it.
0 Kudos
Message 3 of 4
(3,941 Views)
P.S. When you use InstallPopup() to install a custom made popup, the user interface won't let you get to any other window until you call RemovePopup(), but your code doesn't wait: it keeps on running. If you want to wait for something to happen on your custom popup, you can call GetUserEvent as in the following statement:
waited4event = GetUserEvent(1, &waited4panel, &waited4control);
Look at the help in the function panel for GetUserEvent.
If you potentially will have a popup installed ontop of another popup, you may run into problems if you have callbacks on your custom popup panels. You may need to handle the event in code immediately following the GetUserEvent call. There, you'll need to check the panel and the control which generated the event to determ
ine what to do.
Click here to see some help I got from Roberto Bozzolo
0 Kudos
Message 4 of 4
(3,941 Views)