iOS Question Sliding Panels: Complete

Mashiane

Expert
Licensed User
Longtime User
Maybe its better to write your issue here?
In the attached source code in the first post, there is a method in the the iMashPager module. here is it...

B4X:
public Sub GotoPage(Index As Int, bSmooth As Boolean)
    CurrentPage = Index
    ' add page here to scroll horizontally to a page
End Sub

I need help with that so that when the method is called e.g.GotoPage(2), then the sliding panels will move to that panel. Please run the code, you will notice that the panels do slide on swipe as planned, I just need the code to "JumpTo"..

Thanks
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
Maybe its better to write your issue here?
In the attached source code in the first post, there is a method in the the iMashPager module. here is it...

B4X:
public Sub GotoPage(Index As Int, bSmooth As Boolean)
    CurrentPage = Index
    ' add page here to scroll horizontally to a page
End Sub

I need help with that so that when the method is called e.g.GotoPage(2), then the sliding panels will move to that panel. Please run the code, you will notice that the panels do slide on swipe as planned, I just need the code to "JumpTo"..

Thanks
B4X:
public Sub GotoPage(Index As Int, bSmooth As Boolean)
    CurrentPage = Index
    sv.ScrollTo((Index - 1) * sv.Panel.Width, 0, bSmooth)
End Sub
Thanks a lot, let me try this out.
 
Upvote 0
Top