Jump to content
Sign in to follow this  
Nordin

Checkboxes, getting values

Recommended Posts

If have a Checkbox with 4 names in it,

how do i check which ones who are marked or not so I can use the return value in a script?

lbCurSel but for Checkboxes....

Share this post


Link to post
Share on other sites

onCheckBoxesSelChanged = "hint format[""Checkbox change:\n%1\nEntry#: %2\nNewState: %3"",(_this select 0),(_this select 1),(_this select 2)];"

Share this post


Link to post
Share on other sites

Yes I know that but that only shows that I selected X and if its turned on or off ...

What I want to know is if V X Y Z are selected, not that I just selected V and it is on.

Something like this. () shows my selection:

(1) 2 (3) (4)

?????? mycheckbox = [[1] ,[3],[4]]

Share this post


Link to post
Share on other sites

Well if it shows you that you selected X and if it's turned on then you can build up some nice if (x&&y&&z) stuff with it right?

Share this post


Link to post
Share on other sites

Checkboxes has been problematic for me for that reason. I tried implementing "my own logic" handler that tried to keep track of the changes, but sometimes it would miss and the opposite state for a checkbox item was "reported". I gave up at that point and went with buttons instead.

A simple way to read the state array from a checkbox set would be much appreciated.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×