strange wxgrid scroll

Hello, I’ve attached a small example reproducing the problem. I use textctrl on column labels to manage filters on grid values in my application. The problem: scroll the vertical scroll bar somewhere in the middle of the bar height, then click inside the textctrl -> the grid scrolls upwards. Why? if you click in other textctrl the grid continues scrolling. I don’t know if it is a bug but is there some way to prevent/veto it?

python 2.7-64bit, wxpy 2.9.4/3.02, win 7

thank you very much

Marco

wxgridscrollex.py (1.09 KB)

I’ve solved with a EVT_CHILD_FOCUS event handler without evt.Skip()

···

On Wednesday, April 22, 2015 at 5:49:39 PM UTC+2, Marco Prosperi wrote:

Hello, I’ve attached a small example reproducing the problem. I use textctrl on column labels to manage filters on grid values in my application. The problem: scroll the vertical scroll bar somewhere in the middle of the bar height, then click inside the textctrl → the grid scrolls upwards. Why? if you click in other textctrl the grid continues scrolling. I don’t know if it is a bug but is there some way to prevent/veto it?

python 2.7-64bit, wxpy 2.9.4/3.02, win 7

thank you very much

Marco