[wxPython-users] ListCtrl scrolling events?
Lee Merrill
webbily1 at nc.rr.com
Sat Dec 2 07:44:25 PST 2006
Thanks, Robin, what I wound up doing is using a Grid instead of a ListCtrl,
and then catching scroll events from the Grid's ScrolledWindow. Grid's are
very much like ListCtrl's! I think I will generally use Grid's in the
future.
Lee
----- Original Message -----
From: "Robin Dunn" <robin at alldunn.com>
To: <wxPython-users at lists.wxwidgets.org>
Sent: Thursday, November 30, 2006 2:06 PM
Subject: Re: [wxPython-users] ListCtrl scrolling events?
> Lee Merrill wrote:
>> Hi everyone,
>>
>> I have a subclassed ListCtrl on Linux (wxPython version 2.6.2) that
>> gets selection and key events just fine, yet scroll events don't seem to
>> be sent...
>
> If you only need this on Linux (and maybe Mac) then there is a way to do
> it. You can bind your handler to the scrolled window used inside the
> listctrl, like this:
>
> listctrl.GetMainWindow().Bind(wx.EVT_SCROLLWIN, self.OnScroll)
More information about the wxpython-users
mailing list