Set the scroll in Datagrid
Posted: Wed Nov 30, 2016 10:16 pm
Hi hoping for some help please.
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:
or call the scrollerDidScroll with
i.e. calling in the card script
But the scroll won't "stick". As soon as I touch the Datagrid it goes back to the original scroll location!
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
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