[wxVTK] picking problem: need SetFocus in OnMouseDown?
Brought to you by:
malat
From: Tim H. <tim...@gm...> - 2007-05-24 11:49:57
|
Hello, When picking in my wxVTK window I sometimes get incorrect results. This happens when I have a toolbar in the same frame window, and one of the toolbar controls has focus. The picked location seems to be vertically offset by the height of the toolbar. I have found that adding a call to SetFocus() near the top of wxVTKRenderWindowInteractor::OnMouseDown() resolves the issue nicely. It makes sense that the render window should get focus when clicked on, I would suggest. Thanks, Tim |