LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Option Buttons (Boolean)

Hi all,
 
I wish to create 8 boolean buttons that work like option buttons. So that when i click on one button that stays on, any other button already pushed in, pushes back out.
There is a long winded way of doing this, ie. push the others out for each case or event structure but surely there is a slick way of doing this so that if i add another button, there is minimal extra code to be written
 
Thanks in advance
 
Mike
 
0 Kudos
Message 1 of 10
(3,734 Views)
now it is time for the OH so critical question... what version of labview are you using?

Paul
0 Kudos
Message 2 of 10
(3,727 Views)

oops sorry - its the latest version, 8.5

 

0 Kudos
Message 3 of 10
(3,726 Views)
under modern controls --> boolean, try the radio button.   It has the built in functionality you are asking for

Message Edited by Stradis on 10-11-2007 04:40 AM


Paul
Message 4 of 10
(3,723 Views)

sorry i havent made myself very clear...i would like the look of the buttons to be like the modern boolean ok button on the screen (albeit with different text for every button)

Is this possible?

Regards

Mike

0 Kudos
Message 5 of 10
(3,720 Views)
Hello Mike,

you need to customize the radio control (right click->Advanced-> customize). Then you can replace the standard radio button by the one you want:


Ton

Message Edited by TonP on 10-11-2007 10:51 AM

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 6 of 10
(3,717 Views)
Thankyou both...just what im looking for Smiley Very Happy
0 Kudos
Message 7 of 10
(3,711 Views)
Try the attached Custom control. In 7.1.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 8 of 10
(3,691 Views)
I'm not sure if parthabe's control was done this way, but you don't even need to customize each radio button to make it a regular button. It's just a cluster of booleans, so you can add buttons to it and delete the default radio buttons in it. It will work exactly the way you want.
0 Kudos
Message 9 of 10
(3,678 Views)

Yep, Marc! You re right. I ve forgotten.

But you dont even ned to delete & add the button of yur choice, just replacing any other button from the pallette ll suffice. Smiley Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 10 of 10
(3,668 Views)