LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime Menu of Radio Buttons

Solved!
Go to solution

Dear All,

How to add event case to the runtime menu associated with Radio Buttons?

There's a property in Event Case for Radio Buttons but that includes the whole Rectangular Box consisting of Radio Buttons, and not individual Radio Button.

I want to add an event case for for menu selection for individual Radio Button as I am having 4 Radio Buttons, and menu associated with each radio button is different.

 

Thanks,

Ritesh

Message 1 of 4
(3,537 Views)

The event structure returns a reference to sub-item. If you right-click on the boolean, caption or boolean text of one of the buttons you get a valid reference and you can figure out (with caption see example) which element is clicked, if the right click is on the border or background of the radio button a null-reference is returned.

 

Ton

Message Edited by TonP on 10-04-2008 02:25 PM
Message Edited by TonP on 10-04-2008 02:25 PM
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 2 of 4
(3,533 Views)
Solution
Accepted by topic author LVCoder

Hi Ritesh,

      I think TonP's solution will work for you, but if it's important to have a unique event-case for each radio-button, here's one way.  To create the button references, just right-click on a specific button and choose Create\Reference.

 

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 3 of 4
(3,481 Views)

Yes tbd,

I wanted to have independent event case for individual radio buttons.

your solution just worked perfect .  :smileyhappy:

 

Thanks,

Ritesh

0 Kudos
Message 4 of 4
(3,452 Views)