LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

arret par le x de la boite de dialogue

Solved!
Go to solution

bonjour,

je veux sortir ou arreter le programme par le x de la boite de dialogue a un ou plusieurs bouton(s) c.à.d quand la boite de dialogue s'affiche si jappuie sur x alors le programme s'arrete ou on en sort  

comment je peut le faire?

voici en pièce jointe un simple exemples pour mon but

 

0 Kudos
Message 1 of 9
(3,131 Views)

In English please?

Smiley Indifferent

When do you want to stop the program?

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 9
(3,119 Views)

hello Nghtcrwlr

I want to stop or go out the program when i click on the x butom of any of dialog box(with one button or 2 or 3 button)

i mean that when i execute my program and the dialog box message apears on screan if i click on the x the program stop ,so i want if i clik on x to not allow to the second step to execute.

thanks

 

0 Kudos
Message 3 of 9
(3,112 Views)

When the Yes button in the dialoge box is pressed ,you can wire the True value to a Boolean OR and the other input of the OR to the FOR LOOP Stop.


Seee attachemnet

 

YesNo.png

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 9
(3,100 Views)

hi

my purpose : when the x buttom of the dialog box message is pressed so the program dont cross to the second step of the sequence ,it stops the first step of the sequence and all of the sustem stopped.

in another meaning when i start my program it displays (are you sure) ---if i press yes so the loop in the second step of the sequence start

                                                                                                                ---if i press on the x button so i dont cross to the second step and the loop dont excute and my system stop,,,

  TNX

0 Kudos
Message 5 of 9
(3,095 Views)
Solution
Accepted by topic author SALAH.H.M

here there are two buttons on the message box. If you press yes, the second  event case is executed. if you press No, the program stops.

 

Hope this is what you wanted

 

 

YesNo_2.png

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 6 of 9
(3,091 Views)

hi

sorry,but i mean the x buttom see the attached piece

 

0 Kudos
Message 7 of 9
(3,077 Views)

Have you tried my last example?  Even if you press button X OR the window closing X, the program stops.

Actually what are you trying to to? can you be more specific in your final goal?

 

 

 

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 8 of 9
(3,068 Views)

thank you very much Nghtcrwlr

i owe you one

it runs in my program

0 Kudos
Message 9 of 9
(3,060 Views)