B4J Question Checkbox group

moore_it

Well-Known Member
Licensed User
Longtime User
Hi all,

how i do for have one event in a group of checkbox ?

Thanks in advice
 

DonManfred

Expert
Licensed User
Longtime User
set the eventname for all Checkboxes which belongs together the same eventprefix. You then can use ONE event for all of them.
 
Upvote 0

moore_it

Well-Known Member
Licensed User
Longtime User
thanks DonManfred but:

if i have four checkboxes and the last if checked put false at all the others i have four events
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You can use ONE Event. Where exactly is the problem?
Create a small project which shows the issue and upload it.

You also can put all checkboxes in a list (all which belongs together) and iterate triugh the list and react accordingly.
step 1: iterate over the list and set them all unchecked.
step2: set the checkbox checked on the clicked one.
 
Upvote 0

moore_it

Well-Known Member
Licensed User
Longtime User
but if i modify the value of a checkbox the event start.
If i put true on a checkbox that put false on other x checkboxes i have x events ...
 
Upvote 0
Top