LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Want to add Dynamically Checkbox

Solved!
Go to solution

I want to make more than one checkbox at run-time. So I did it with listbox, but I can't check it.

How can i  do????

Plzz help

I attched my VI. 

Thx in Advance.

0 Kudos
Message 1 of 5
(2,290 Views)

Hi ZZZZ,

 

you select the image (!) of an unchecked checkbox as symbol for the listbox entry and now you wonder why you can't check that image? Think about that yourself...

 

Solution:

Check the mouseclick for the listbox and change the symbol for the clicked listbox entry. Remember: the "ObjSymbol" is just an image!

Best regards,
GerdW


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

As noted, the things you are adding are images, not additional controls. If you're looking to create a pure LabVIEW solution, then you will need to do your own programming. You can respond to the Mouse Down event on the control and then use the Point to Row Invoke Node to tell you if the click was on a symbol. If so, you can then toggle the symbol for that row.

0 Kudos
Message 3 of 5
(2,263 Views)
Solution
Accepted by topic author ZZZZxyz

I was waiting for a process to finish so I threw together a small sample for you to try.

 

An alternative is to use a control like an ActiveX control or a .NET control, but of course, that would make it OS-specific.

0 Kudos
Message 4 of 5
(2,261 Views)

Thank You.........

0 Kudos
Message 5 of 5
(2,233 Views)