Scrollview quick ask

tremara1

Active Member
Licensed User
Longtime User
I have used a scrollview and put 4 layouts on panels and put the panels on a scrollview. I currently use code in the sv_scrollChanged sub to check if the panel left is close to activity left and snaps it to the correct position. This works somewhat ok but I wonder if there is a better way to do this.
 

tremara1

Active Member
Licensed User
Longtime User
A little more info

Sorry, a little lite on for detail....the scrollview is a horizontal sv and I just used the addview method changing the left value as I added more panels the panels load fine. It was a small app with 4 layouts loaded on 4 panels. I know there is "sliding panels" but I was trying a simple way to do it with code. The thing I was trying to get to was when scrolled it would land fully on the incoming panel, not half way in. As I said I used logic to detect the scrolled to position and this worked but I was wondering if maybe there was a better way.....this is not critical I am just trying a few different things to see how they go..... thanks.
 
Upvote 0
Top