From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog Button doesn't support latch action in local variables?

LV5.1.1
WinNT

Hello. Why can't I create local variables for the Dialog button (not
boolean controls)? If I have to go with Boolean Controls, how can I modify
the control to make it look exactly like the Dialog Button? I know that
there is a similar button on the boolean but the edge is overexageratedly
raised. I want the look and feel of an ordinary windows application.
0 Kudos
Message 1 of 2
(3,558 Views)
> Hello. Why can't I create local variables for the Dialog button (not
> boolean controls)? If I have to go with Boolean Controls, how can I modify
> the control to make it look exactly like the Dialog Button? I know that
> there is a similar button on the boolean but the edge is overexageratedly
> raised. I want the look and feel of an ordinary windows application.

The problem with the local is that latched mechanical actions compatible
with any Booleans. The only difference between the Dialog and other buttons
is their appearance, and that can be customized greatly using the control
editor. No button can have a local variable and a latching mechanical
action because it isn't clearly defined when the button should latch --
when the first terminal or local read
s it, when all of them read it, or
somewhere in between.

You obviously want to button appearance to be the dialog style; so use it.
Your diagram most likely doesn't need local variables to it, but if it does,
then change the mechanical action to be Switch on Mouse Up rather than Latch
on Mouse Up. It is the icon above the one it is dropped as. This will allow
you to use locals, and the only difference is that the button won't reset
itself after being pressed. You can reset it yourself using a local.

Greg McKaskle
0 Kudos
Message 2 of 2
(3,558 Views)