Go Top a TVertScrollBox

房东的猫 提交于 2020-01-06 02:35:35

问题


If a user has scrolled down in a VertScrollBox, how do I set it back to the top position again in XE8?

this code don't Work on XE8

VertScrollBox1.ViewportPosition := PointF(0,0);
VertScrollBox1.RealignContent

回答1:


VertScrollBox1.ViewportPosition := PointF(VertScrollBox1.ViewportPosition.X, 0);

Works for me on Android and Windows.



来源:https://stackoverflow.com/questions/32684741/go-top-a-tvertscrollbox

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!