Thanks for the answer, but I don't think it helps me. I understand that you have to load a layout containing the AS_Chip1 view.
I will do it using label or buttons, which allow me to do something
B4X:
For i = 0 To NbButtons - 1
Dim btn As Button
btn.Initialize("Button")
btn.text = i + 1
btn.Tag = i + 1
fp.Panel.AddView(btn, x, y, Width, Height)
x = x + DeltaX
If x > 350 Then
x = 0
y = y + DeltaY
End If
Unluckily that is the only way to add CustomViews by code.
You need to prepare a layout with only the CV (in your case the AS_Chip) and then load it on every panel that you will create.
All the CV will have the same name and will raise the same Event with the same Event Name.
In there you will need to manage them creating a reference with the Sender.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.