Author Topic: Scrolling ScrollView in Code  (Read 2501 times)

Bobbin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Scrolling ScrollView in Code
« on: March 13, 2014, 09:01:23 AM »
I need to change the scroll position of a scrollview element after pushing a button.
I've tried several things but nothing seems to work. Help?
No one ever said being a Heretic was easy.
So may we meet in Less Interesting Times.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scrolling ScrollView in Code
« Reply #1 on: March 14, 2014, 12:15:36 PM »
SpringPanel.Begin will move the scroll view to the target local position of your choice. UIScrollView.SetDragAmount will move the scroll view to the target relative position (0-1 range).

Bobbin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: Scrolling ScrollView in Code
« Reply #2 on: March 16, 2014, 03:36:14 AM »
Thanks.
No one ever said being a Heretic was easy.
So may we meet in Less Interesting Times.