LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Grayed-out buttons during run-time

I tried with two button dialog, but parameters true and false are type of string, but I need to wire on prompt the ok button with the stop terminal, so there is type mismatch. It doesn't wotk with panel close? too. A prompt should appeat on the screen, but nothing happens. I also tried with Prompt user function, but I am not sure how to use it properly.

0 Kudos
Message 21 of 23
(980 Views)

The output of the two button dialog is a boolean: TRUE if the left button (e.g. OK) has been pressed and FALSE if the right button (e.g. cancel) has been pressed.

 

Seems to be perfectly suitable for your purpose! 😄

 

(The input string determine what text should be displayed on the dialog and on the buttons.)

 

Please show us your code!

0 Kudos
Message 22 of 23
(974 Views)

Oh yes...there is an error "connected to an undirected tunnel" when I try to wire the output of two button dialog. And, I am not sure what type ok an cancel should be: control,constant or indicator? I wouldn't say control, because it would be placed on a front panel, and I don't want this to happen. I need to make a classic "Are you sure you want to quit" prompt.

0 Kudos
Message 23 of 23
(967 Views)