Left over views in scrollview

ScarBelly

Member
Licensed User
Longtime User
Nevermind. I just fixed it this way:
svAlerts.Initialize(AlertHeight * 120dip)
If panels(1).NumberOfViews > 0 Then
panels(1).RemoveViewAt(0)
End If
panels(1).AddView(svAlerts, 0, 0, 100%x, 100%y)

I have an app that show alert messages as panels in a scrollview's panel.
Increasing the message panel count works fine but when one is removed at the server the scrollview still shows the old message until I cause an activity resume be turning the device. I've tried moving my dim statements to globals and back again. Of note is that I am using Erel's Sliding Panels and panels(1) is one of 3 panels (no issues with the other two).

Is there something I've missed doing? How do I get the scrollview or panels(1) to refresh itself?

Attached is a sample version my code that gets called each time a list of messages is received.
 

Attachments

  • ShowStatus.txt
    1.8 KB · Views: 154
Last edited:
Top