Mashiane Expert Licensed User Longtime User Jul 17, 2016 #1 Hi This has been completed and moved to here. Last edited: Jul 18, 2016
narek adonts Well-Known Member Licensed User Longtime User Jul 17, 2016 #2 Maybe its better to write your issue here? Upvote 0
narek adonts Well-Known Member Licensed User Longtime User Jul 18, 2016 #3 Maybe its better to write your issue here? Upvote 0
Mashiane Expert Licensed User Longtime User Jul 18, 2016 #4 narek adonts said: Maybe its better to write your issue here? Click to expand... In the attached source code in the first post, there is a method in the the iMashPager module. here is it... Code: Copy 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
narek adonts said: Maybe its better to write your issue here? Click to expand... In the attached source code in the first post, there is a method in the the iMashPager module. here is it... Code: Copy 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
klaus Expert Licensed User Longtime User Jul 18, 2016 #5 Code: Copy public Sub GotoPage(Index As Int, bSmooth As Boolean) CurrentPage = Index sv.ScrollTo((Index - 1) * sv.Panel.Width, 0, bSmooth) End Sub Upvote 0
Code: Copy public Sub GotoPage(Index As Int, bSmooth As Boolean) CurrentPage = Index sv.ScrollTo((Index - 1) * sv.Panel.Width, 0, bSmooth) End Sub
Mashiane Expert Licensed User Longtime User Jul 18, 2016 #6 narek adonts said: Maybe its better to write your issue here? Click to expand... In the attached source code in the first post, there is a method in the the iMashPager module. here is it... Code: Copy 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 klaus said: Code: Copy public Sub GotoPage(Index As Int, bSmooth As Boolean) CurrentPage = Index sv.ScrollTo((Index - 1) * sv.Panel.Width, 0, bSmooth) End Sub Click to expand... Thanks a lot, let me try this out. Upvote 0
narek adonts said: Maybe its better to write your issue here? Click to expand... In the attached source code in the first post, there is a method in the the iMashPager module. here is it... Code: Copy 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 klaus said: Code: Copy public Sub GotoPage(Index As Int, bSmooth As Boolean) CurrentPage = Index sv.ScrollTo((Index - 1) * sv.Panel.Width, 0, bSmooth) End Sub Click to expand... Thanks a lot, let me try this out.
Mashiane Expert Licensed User Longtime User Jul 18, 2016 #7 klaus said: Code: Copy public Sub GotoPage(Index As Int, bSmooth As Boolean) CurrentPage = Index sv.ScrollTo((Index - 1) * sv.Panel.Width, 0, bSmooth) End Sub Click to expand... Perfect, wow, thanks. As the index is zero based, had to change Index - 1 to Index. You are a star. Upvote 0
klaus said: Code: Copy public Sub GotoPage(Index As Int, bSmooth As Boolean) CurrentPage = Index sv.ScrollTo((Index - 1) * sv.Panel.Width, 0, bSmooth) End Sub Click to expand... Perfect, wow, thanks. As the index is zero based, had to change Index - 1 to Index. You are a star.