B4J Question [ABMaterial] ScrolltoComponent

ToolboxZX

Member
Licensed User
Longtime User
Is there an example for the proper usage of the new page.ScrolltoComponent method?

Also what is the definition and acceptable value range for these two parameters:
scrollTop As Int
speed As Int

I have tried the following to be able to scroll to the top of the page, where the abmcomponent "hdr2" resides:
B4X:
Dim tester As ABMLabel = page.Component("hdr2")
page.ScrollToComponent(tester,50,50)

I also tried to add page.ws.Flush when the above did not work. Thank you.
 

ToolboxZX

Member
Licensed User
Longtime User
Identified that this feature was fixed in ABMaterial 3.03
I am assuming that:
scrollTop = pixels from top of element, range 0-100 (percent)
speed = scroll speed 0 to 100 (percent)
 
Upvote 0
Top