[vtkusers] Problem with interaction in Tcl

Roger Blum roger_blum at swissonline.ch
Wed Jun 28 05:13:57 EDT 2006

Hello vtk users,

I have an application which uses multiple windows (each containing one or 
more vtkTkRenderWidgets). The default behavior to grab the focus when the 
mouse pointer enters the widget leads to a disturbing behavior: if the mouse 
is moved out of the current window and enters an other vtkTkRenderWidget, 
this one grabs the focus and brings it's window to the front (hiding the 
current window).

Removing the focus command in the file binding.tcl solved the "wrong focus" 
problem. But it seems to be a bad trick, as the vtkTkRenderWidget do not get 
any key events anymore.
How can I avoid this behavior? What is the "correct" way to achieve what I 
want (change of focus only on mouse click)?

Thanks for your help,

More information about the vtkusers mailing list