wxgrid ,检测滚动事件 [英] wxgrid , Detecting Scroll event

查看:28
本文介绍了wxgrid ,检测滚动事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个带有自定义表格的 wxGrid.每当用户向下滚动到网格的最底部时,我必须从我的表中加载接下来的 100 行.我试过 EVT_SCROLL_BOTTOM() 但我无法检测到它.正确的做法是什么?谢谢.

I have created a wxGrid with custom table. Whenever the user scrolls down to very bottom of the grid, I have to load the next 100 rows from my table. I tried EVT_SCROLL_BOTTOM() but I am not able to detect it. What is the right thing to do? Thanks.

推荐答案

您可以为网格绑定滚动获胜事件.我遇到了和你几乎一样的要求.:)

You could bind the scroll win event for the grid. I have encountered almost the same requirement as you. :)

self.Bind(wx.EVT_SCROLLWIN, self.OnScroll)

这篇关于wxgrid ,检测滚动事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆