LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Would like to have a popup in LabWindows/CVI with 'OK' and 'Cancel'.

I would like a popup that displays a message, along with 'OK' and 'Cancel' buttons. ConfirmPopup() has 'Yes' and 'No', so it's not quite right for me. Is it possible to use GenericPopup()? However, I believe this function will put a text box in the popup, which I don't need. I know I can make my own popup with InstallPopup() but would like to make sure of another way. I'm using Labwindows/CVI 6.0. Thanks in advance.
0 Kudos
Message 1 of 3
(3,868 Views)
You can use the GenericPopup() without the input box. The function help for GenericPopup() states that to hide the input string, pass 0 to the responseBuffer.
Here's an example of how to use it. Title will show up on the title bar. Message will show up within the dialog box. If you don't want a message, set the Message parameter to "".

resp = GenericMessagePopup ("Title", "Message", "OK", "Cancel", "", 0, 0, 0,
VAL_GENERIC_POPUP_BTN1,
VAL_GENERIC_POPUP_BTN1,
VAL_GENERIC_POPUP_BTN2);
Message 2 of 3
(3,868 Views)
Al,
Thanks for the help.

Bill
0 Kudos
Message 3 of 3
(3,868 Views)