LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Question sur ConfirmPopup

Bonjour à toutes et à tous !

J'aimerais savoir s'il existe une fonction "ConfirmPopup" qui intégre un bouton "Cancel". En effet, dans CVI je ne trouve que la fonction "ConfirmPopup" qui contient uniquement deux boutons ("Yes" et "No").

Merci d'avance pour vos réponses !

Salutation !
0 Kudos
Message 1 of 3
(3,157 Views)
I hope this helps, I answer in english because my french is not good 😕


Use 'GenericMessagePopup' and define the 3 buttons:
int result = GenericMessagePopup(
"Popup", // Popup Title
"Please select one", // Popup Message
"YES", // Label Button1
"NO", // Label Button2
"CANCEL", // Label Button3
0, //answer String
0, //Tam bytes answer string
1, //Button Align
VAL_GENERIC_POPUP_BTN1, // Active control
VAL_GENERIC_POPUP_BTN1, // Control assigned to
VAL_GENERIC_POPUP_BTN3); //Control assigned to

if (result == 1) // Boton1 (YES)
{
//....
}
else if (result == 2) // Boton2 (NO)
{
//....
}
else //Boton3 (CANCEL)
{
}
Message 2 of 3
(3,149 Views)
It's not a problem if you answer me in English beacause I have done a mistake when I post my message (I wanted to post in french forum). Thank you for your answer : it's a good help for me.

N.B.: excuse me for my english !

Best regards.
0 Kudos
Message 3 of 3
(3,146 Views)