LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Popup box with default responds message

Hi,
Is there in CVI a popupbox where I can hardcode a default resonds message ?
0 Kudos
Message 1 of 4
(3,170 Views)
Here are two easy ways to do this.
1. Create a gobal string variable or string constant and call MessagePopup using that string. For example:
#define MYPOPUPTITLE "My Popup Title"
#define MYPOPUPMSG "My Popup Message"
...
MessagePopup(MYPOPUPTITLE, MYPOPUPMSG);
...
2. Create your own function which calls MessagePopup with hard-coded strings. For example:
void MyMessagePopup(void)
{
MessagePopup("My Popup Title", "My Popup Message");
}
...
// call My Popup
MyMessagePopup();
...
0 Kudos
Message 2 of 4
(3,170 Views)
Hi AI S

That's not what I mean.
I'am talking about a default responds message of a confirmpopup box.
0 Kudos
Message 3 of 4
(3,170 Views)
Can you please provide some more detail?
The ConfirmPopup takes a title and message just like the MessageBox in my example. From either popup, the message is an input, not a response or output. The Response Value on the ConfirmPopup function panel is an integer, not a message. If you want to change the button labels or change which button is the default, use the GenericMessagePopup instead.
0 Kudos
Message 4 of 4
(3,170 Views)