Hello everybody, I know I am making an error but I am not able to fix it and need some help from you guys.
This is just some code to test the ScrollView capabilities:
Now the question is: Why the ScrollView just let me scroll only the first 14 CheckBoxes?
Thank you in advance for any hint and help.
:BangHead:
This is just some code to test the ScrollView capabilities:
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
Dim ScrollView1 As ScrollView
End Sub
Sub Activity_Create(FirstTime As Boolean)
ScrollView1.Initialize(800)
Activity.AddView(ScrollView1,0,0,100%x,100%y)
Dim pnl As Panel=ScrollView1.Panel
pnl.Color=Colors.White
For i = 0 To 250
Dim chk As CheckBox
chk.Initialize("")
chk.Text="Check #" & (i + 1)
chk.TextColor=Colors.Blue
pnl.AddView(chk,10dip,50dip * i + 50dip,150dip,50dip)
Next
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Now the question is: Why the ScrollView just let me scroll only the first 14 CheckBoxes?
Thank you in advance for any hint and help.
:BangHead: