UI Interest Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

3 State Button?

HI Everyone,

This there a way to make a Boolean control (or any other) have 3 states? Example Run/ Stop/ Pause?

Thanks

And thanks everyone in thise groups my UI's have come a long way from what I learned here.

0 Kudos
Message 1 of 9
(13,891 Views)

Hi KPanda,

well, a boolean only knows about 2 states. It simply can't handle more than that Smiley Wink

You can use enums, rings or picture rings to get a 3-state-button...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(8,027 Views)

Hi KPanda, here is an example of a SP3T switch I made some time ago using a picture ring control.

Ben

0 Kudos
Message 3 of 9
(8,027 Views)

You can also use a picture control or XControl.  A generic XControl would probably be best, but would take some time.  If you happen to do this, post it.  We get this request a lot.

If your GUI can handle the space, you may also want to consider a radio button.

0 Kudos
Message 4 of 9
(8,027 Views)

Check out the 'System Mixed Checkbox'

It has three states: True, False, Mixed.

Not sure how much you can customize the look.

Kurt

0 Kudos
Message 5 of 9
(8,027 Views)

DVD Control.jpg

I know this was asked for a while back, but you may want to consider making a button that looks like the play pause and stop like a DVD Player.  You can find an example in

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Update-Front-Panel/idi-p/1020307

Make one control Play/Pause, and the other Stop.  This is just a picture, so you will have to create your own.  This is also a standard that has already been adopted, so you are not inventing another concept.  Making all 3 in one button only allows a certain sequence (with property nodes) unless you are allowed to chose from a list otherwise.

0 Kudos
Message 6 of 9
(8,027 Views)

I was browsing through the group posts and thought I would put in my $0.02. 

By customizing the buttons in a radio control, you can easily accomplish a three-state button control.  A radio control is basically a cluster of buttons, so customizing it is easy.

play-pause-stop.PNG

-Derek Roane
0 Kudos
Message 7 of 9
(8,027 Views)

hi everyone!

i encountered the following problem. i managed to replace the three buttons by my custom designs... but when in use there seems to be a problem when the cursor is on one of the buttons... did i miss to replace a "mouse-over image"? if so, where?

thanks!

0 Kudos
Message 8 of 9
(8,027 Views)

if you post your code or an example then it's easier to understand what you mean and maybe someone will try to help...

Message 9 of 9
(8,027 Views)