Android Question Checkboxes in a panel

saunwin

Active Member
Licensed User
Longtime User
Morning,

I have 9 checkboxes in a panel. I want them in 3 groups of 3. In each group selecting a radio button de-selects the other two.

At present selecting ANY of the 9 buttons de-selects the other 8.

Do I have to put each group in their own panel ?

Many thanks
 

DonManfred

Expert
Licensed User
Longtime User
No need. You can use the Tag Property to distinguish them. You can go over the panel with
B4X:
for each v as view in p.GetAllViewsRecursive
  if v is Checkbox then
    dim cb as checkbox = v
    ' work with the Checkbox....
  end if
next
 
Upvote 0

saunwin

Active Member
Licensed User
Longtime User
Sorry DonManfred - Typo I'm working with radio buttons.
Can the tag property be used in the designer ?

Morning,

I have 9 RADIOBUTTONS in a panel. I want them in 3 groups of 3. In each group selecting a radio button de-selects the other two.

At present selecting ANY of the 9 radio buttons de-selects the other 8.

Do I have to put each group in their own panel ?

Many thanks
 
Upvote 0
Top