Hi all,
I'm pulling my hair out because I cant find a solution to the "Initialize" problem i have.
I have been at this all day. And I cant find anything that points to a solution.
I'm pulling my hair out because I cant find a solution to the "Initialize" problem i have.
Attention: V2.20 has an API change which makes the ViewPager incompatible with older versions. The AHPageContainer parameter is removed from the Initialize() method. Initialize2() has the old signature. If you use Initialize() (or add the View to the Designer as a custom view) then you have to set the container object with ViewPager.PageContainer = <YourContainer>
B4X:
Dim ProductenContainer As AHPageContainer '// <-- lib AHPageviewer
Dim ProductPager As AHViewPager
'Initialize the panels we use for the pages and put them in the container
ProductenContainer.Initialize '/ AHPageViewer <--
Dim Pan As Panel
Pan = CreateProductPanel( MsgPart(1), TempProductList )
ProductenContainer.AddPage( Pan ,MsgPart(1))
ProductPager.Initialize(ProductenContainer)
I have been at this all day. And I cant find anything that points to a solution.