Delphi Devexpress TcxGrid 滚动事件
我将 cxGrid 组件与 TcxGridTableView 一起使用。我需要获取滚动条的偏移距离。我想知道我可以使用滚动事件来获取此信息吗?
我正在寻找滚动了多少像素,因为我想显示类似从其上方网格的左侧位置开始的像素规则的内容,并且我必须计算通过滚动移动的“隐藏”像素。
提前致谢。
I am using the cxGrid component with a TcxGridTableView. I need to get the offset distance of the scroll bar. I wonder there are scroll events that I can use to get this information?
I'm looking for how much pixels were scrolled because I want to display something like a rule of pixels from the left position of the grid above it, and i have to count the pixels "hidden", shifted by the scroll.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信网格有某种索引属性,它指定网格中顶部可见行的行号。该属性可以读取和设置。这就是您要找的吗?
I believe the grid has some sort of index property that specifies the rownumber of the top visible row in the grid. This property can be read and set. Is that what you are looking for?