Hi all,
I have a scrollview into a panel.
Panel is in Designer, but scrollview is created by code.
This is the code:
I need to clear scrollview to build different data
numitem can be different.
How can I do it?
Thanks in advance
Marcom
I have a scrollview into a panel.
Panel is in Designer, but scrollview is created by code.
This is the code:
scrollview add:
Dim hdricetta As ScrollView
Dim sostali As Label
...
...
Activity_Create
hdricetta.Initialize(0) ' initialize the ScrollView
hdricetta.Panel.Color = pagecolor
pgsostituzionePNsostituzioni.AddView(hdricetta,rleft, rtop, rwidth,rheight)
...
...
For i = 1 To numitem
sostali.Initialize("sostali")
hdricetta.Panel.AddView(sostali, 5dip,wtop,rwidth,30dip)
sostali.TextSize=18
sostali.Typeface=Typeface.DEFAULT
sostali.TextColor=Colors.Black
sostali.Text=waliric(i)
next
...
...
hdricetta.Panel.Height = sostali.height * numitem
I need to clear scrollview to build different data
numitem can be different.
How can I do it?
Thanks in advance
Marcom