04-13-2018 10:03 PM
Hi I need to create a panel and code it, here i have (checkable/uncheckable) boxes, there will be total 170 boxes if i select any one box out of 170 boxes class should be on(checked/ticked). if i have not selected any boxes out of 170 boxes class should be unchecked.
sorry for my poor English,
please give me ideas or examples to do it.
i have attached the dummy panel snap
Solved! Go to Solution.
04-14-2018 03:32 AM
Anyone??
04-15-2018 04:27 AM
For such a large number of controls you may want to consider using a control array, you can read more about this feature here
04-15-2018 05:15 AM
Thanks Wolfgang, I solved it using list box option. Thank you for advise.
04-16-2018 02:14 AM
For such a large number of controls I would suggest creating them programmatically: create a panel with a single checkbox and iterate rows*column with DuplicateCtrl. CVI is good at this and that command simplifies a lot the task of creating large numebr of identical controls.
A single callback on all checkboxes could manipulate a static variable adding or subtracting 1 at every commit event. Such counter could then be used to mark appropriate checkbox 'non marked' / 'some marked'