Hi
I have searched and search and cannot find a specific answer to my question;
I have a panel. It may have 1 checkbox or up to 8.
I add the checkbox dynamically.
How can I position them so that it goes
1 2 5 6
3 4 7 8
This is the code I have used to achieve this:
I have searched and search and cannot find a specific answer to my question;
I have a panel. It may have 1 checkbox or up to 8.
I add the checkbox dynamically.
How can I position them so that it goes
1 2 5 6
3 4 7 8
This is the code I have used to achieve this:
B4X:
If i Mod 2 <> 1 Then
panLive_ListedUsers.AddView(userCheckBox,posLeft + 5dip, posTop + 10dip , 100dip, 30dip)
posLeft = posLeft + 100dip
Else
panLive_ListedUsers.AddView(userCheckBox,posLeft + 5dip, posTop + 10dip, 100dip, 30dip)
posTop = posTop + 30dip
End If