Hello everybody,
I am looking for ways to get the value of a scroll unit for a ListCtrl. I have adapted some of the code of the TextEditMixin for one of my windows. Unfortunately, the in-cell editor is opened in the wrong place (and for the wrong column) when the window is scrolled horizontally. I am pretty sure this is because the scroll position returned by GetScrollPos(wx.HORIZONTAL) is in some kind of unit other than the pixels(?) I need.
So my question is, how can I find out how many pixels correspond to one scroll unit for the list control? This old thread (and this one) mention a method GetScrollPixelsPerUnit/GetPixelsPerUnit, but my wxPython hiccups on that with
AttributeError: ‘ListCtrl’ object has no attribute ‘GetPixelsPerUnit’
I haven’t had any luck googling this issue. Can anybody here help out?
Thanks,
Ingrid