T ToolboxZX Member Licensed User Longtime User May 1, 2017 #1 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: Code: Copy 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.
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: Code: Copy 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.
T ToolboxZX Member Licensed User Longtime User May 2, 2017 #2 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
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)
alwaysbusy Expert Licensed User Longtime User May 2, 2017 #3 The params actually are: scrollTop: the top of the element minus scrollTop in pixels speed: duration of the animation, in milliseconds Upvote 0
The params actually are: scrollTop: the top of the element minus scrollTop in pixels speed: duration of the animation, in milliseconds