Hi - sorry for the long delay in replying to this.
I have narrowed down the problem, and I am wondering if it is a bug.
When I create a panel, I make it the width of the CustomListView into which it will go. That works absoutely fine.
I create a panel and then add the panel using this:
NewSectorCell = CreateASectorPanel(NewSectorNumber, clvSectorList.AsView.Width, CellHeight)
clvSectorList.Add(NewSectorCell, Waypoint)
This works fine - the width of the panel is correct and horizontal scrolling works as expected.
However, when changes are made to the contents of that panel at a particular index in the custom list, I use ReplaceAt to put a new panel in with all the updated information.
That's the point at which the width goes awry.
Here's the code to give you an idea...
First there is a call to create a new panel using the width of the customlist view.
Then there is call to put the new panel (cell as I call it) into the Custom List.
Note that the ReplaceAt only allows the setting of the height, not the width
NewSectorCell = CreateASectorPanel(i, clvSectorList.AsView.Width, CellHeight)
clvSectorList.ReplaceAt(i,NewSectorCell,CellHeight,DestinationWaypoint)
Why does replacing an item with what is essentially exactly the same size of panel result in the width being too great?
Is that a bug?
Thanks for your help.
JMB