I have a data grid working well on an iPhone build and the native scroller works great. But I want to have buttons to scroll to the bottom and top (not using the status bar).
I can scroll to the bottom using:
Code: Select all
set the dgVScroll of group "DataGrid 1" to the dgFormattedHeight of group "DataGrid 1"
Code: Select all
put the dgFormattedHeight of group "DataGrid 1" into scrollend
scrollerDidScroll 0, scrollend
Code: Select all
on scrollerDidScroll hOffset, vOffset
// When the user scrolls move the displayed content
set the dgVScroll of group "DataGrid 1" to vOffset --Datagrid 1 is the name of the datagrid group
end scrollerDidScroll
How can I scroll to a location using the native scroller and have it use that as the location to scroll from?
Thanks for any and all suggestions or comments.
Roger